/* ==========================================================================
   Althon Workflow Tabs — Elementor Widget  (v1.0.2)
   Bulletproof grid layout — always side-by-side on desktop/tablet landscape
   ========================================================================== */

.awt-container {
    --awt-nav-fr: 0.9;
    --awt-pane-fr: 1.1;
    --awt-accent-c1: #2563eb;
    --awt-accent-c2: #06b6d4;
    --awt-num-grad-angle: 135deg;
    --awt-anim-duration: 0.3s;
    --awt-anim-easing: ease-out;

    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.04);
}

.awt-container *,
.awt-container *::before,
.awt-container *::after {
    box-sizing: border-box;
}

/* Heading */
.awt-heading {
    margin: 0 0 30px 0;
    color: #0f172a;
    font-weight: 700;
    text-align: center;
}

/* ==========================================================================
   GRID — FORCE SIDE-BY-SIDE (with !important to defeat any cache/override)
   ========================================================================== */
.awt-container .awt-grid,
.awt-container .awt-grid.awt-nav-right {
    display: grid !important;
    grid-template-columns: minmax(0, var(--awt-nav-fr, 0.9fr)) minmax(0, var(--awt-pane-fr, 1.1fr)) !important;
    gap: 60px;
    align-items: stretch;
}

/* Force the required layout: nav/tab list on the left, content pane on the right. */
.awt-container .awt-grid .awt-nav {
    grid-column: 1 !important;
    order: 1 !important;
}

.awt-container .awt-grid .awt-pane-wrap {
    grid-column: 2 !important;
    order: 2 !important;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.awt-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.awt-nav-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #f1f5f9;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all var(--awt-anim-duration) var(--awt-anim-easing);
    font-family: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    min-width: 0;
}

.awt-nav-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.awt-nav-btn:hover {
    background: #e2e8f0;
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateX(5px);
}

.awt-nav-btn.is-active {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.06);
    transform: translateX(0);
}

/* Number circle */
.awt-num {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #64748b;
    transition: all var(--awt-anim-duration) var(--awt-anim-easing);
}

.awt-nav-btn.is-active .awt-num {
    background: #2563eb;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Nav text */
.awt-nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.awt-nav-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    transition: color var(--awt-anim-duration) var(--awt-anim-easing);
    overflow-wrap: break-word;
}

.awt-nav-sub {
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    overflow-wrap: break-word;
}

.awt-nav-btn.is-active .awt-nav-title { color: #2563eb; }

/* ==========================================================================
   PANE
   ========================================================================== */
.awt-pane-wrap {
    position: relative;
    display: grid !important;
    min-width: 0;
}

.awt-pane {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 48px;
    min-height: 420px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    display: none;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    min-width: 0;
}

.awt-pane.is-active {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.awt-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--awt-accent-c1), var(--awt-accent-c2));
    display: block;
}

.awt-pane-content {
    width: 100%;
    animation: awtFadeInUp var(--awt-anim-duration) var(--awt-anim-easing) both;
}

@keyframes awtFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pane Icon */
.awt-pane-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 54px;
    line-height: 1;
    color: #2563eb;
    margin-bottom: 24px;
}

.awt-pane-icon svg {
    width: 1em;
    height: 1em;
    color: inherit;
    fill: currentColor;
}

/* Title */
.awt-pane-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    overflow-wrap: break-word;
}

/* Description */
.awt-pane-desc {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    overflow-wrap: break-word;
}

/* Features Label */
.awt-feat-label {
    margin: 0 0 16px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
}

/* Features Grid */
.awt-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.awt-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: break-word;
}

.awt-feat-item > span {
    min-width: 0;
    flex: 1 1 auto;
}

.awt-feat-item i,
.awt-feat-item svg {
    flex: 0 0 auto;
    color: #2563eb;
    fill: currentColor;
    font-size: 14px;
    width: 1em;
    height: 1em;
    margin-top: 3px;
}

/* ==========================================================================
   RESPONSIVE — Only stack on actual mobile/small tablet (<= 767px)
   No container queries — simple, reliable, works everywhere
   ========================================================================== */
@media (max-width: 1024px) {
    .awt-container .awt-grid,
    .awt-container .awt-grid.awt-nav-right {
        gap: 30px;
    }
    .awt-pane { padding: 36px; }
}

@media (max-width: 767px) {
    .awt-container.awt-stack .awt-grid,
    .awt-container.awt-stack .awt-grid.awt-nav-right {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .awt-container.awt-stack .awt-grid .awt-nav {
        grid-column: 1 !important;
        order: 1 !important;
    }
    .awt-container.awt-stack .awt-grid .awt-pane-wrap {
        grid-column: 1 !important;
        order: 2 !important;
    }

    .awt-container { padding: 24px; }
    .awt-pane { padding: 28px; min-height: auto; }
    .awt-nav-btn:hover { transform: none; }
}

@media (max-width: 480px) {
    .awt-container { padding: 18px; }
    .awt-nav-btn { padding: 16px; gap: 14px; }
    .awt-num { width: 38px; height: 38px; font-size: 16px; }
    .awt-nav-title { font-size: 16px; }
    .awt-pane { padding: 22px; }
    .awt-pane-title { font-size: 22px; }
    .awt-pane-icon { font-size: 44px; }
    .awt-feat-grid { grid-template-columns: 1fr; }
}
