/* =========================================================================
   AJONTec — Service detail pages + "How We Work" process timeline
   Standalone file. It does not override any existing rule; every selector is
   namespaced with .aj-  (safe to add/remove without touching the old design).
   ========================================================================= */

.aj-service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .aj-service-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Main column ---------- */
.aj-service-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(127, 127, 127, .18);
}

.aj-service-body {
    font-size: 1.02rem;
    line-height: 1.85;
    opacity: .92;
}

.aj-service-body p { margin: 0 0 18px; }
.aj-service-body h2,
.aj-service-h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 34px 0 16px;
    letter-spacing: -.02em;
}
.aj-service-body h3 { font-size: 1.2rem; font-weight: 700; margin: 26px 0 12px; }
.aj-service-body ul, .aj-service-body ol { margin: 0 0 18px 20px; }
.aj-service-body li { margin-bottom: 8px; }
.aj-service-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 16px 0; }
.aj-service-body blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--primary, #4f46e5);
    background: rgba(127, 127, 127, .07);
    border-radius: 0 10px 10px 0;
}

/* ---------- Key points ---------- */
.aj-service-bullets {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 24px;
}
.aj-service-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.aj-service-bullets svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--primary, #4f46e5);
}

/* ---------- Tech chips ---------- */
.aj-tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.aj-chip {
    display: inline-block;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(127, 127, 127, .25);
    background: rgba(127, 127, 127, .08);
    white-space: nowrap;
}

/* ---------- Sidebar ---------- */
.aj-service-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 991px) { .aj-service-side { position: static; } }

.aj-side-card {
    padding: 26px;
    border-radius: 18px;
    border: 1px solid rgba(127, 127, 127, .18);
    background: rgba(127, 127, 127, .06);
    backdrop-filter: blur(6px);
}
.aj-side-card h3 { font-size: 1.15rem; font-weight: 800; margin: 14px 0 16px; }
.aj-side-title { margin-top: 0 !important; }

.aj-side-meta { list-style: none; margin: 0 0 20px; padding: 0; }
.aj-side-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(127, 127, 127, .22);
    font-size: .9rem;
}
.aj-side-meta li:last-child { border-bottom: 0; }
.aj-side-meta span { opacity: .7; }
.aj-side-meta strong { text-align: right; }

.aj-side-btn { width: 100%; justify-content: center; margin-bottom: 10px; display: inline-flex; }

.aj-side-links { list-style: none; margin: 0 0 14px; padding: 0; }
.aj-side-links li { border-bottom: 1px dashed rgba(127, 127, 127, .22); }
.aj-side-links li:last-child { border-bottom: 0; }
.aj-side-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    color: inherit;
    transition: color .2s ease, transform .2s ease;
}
.aj-side-links a:hover { color: var(--primary, #4f46e5); transform: translateX(3px); }

/* ---------- Service card thumbnail (grid) ---------- */
.service-thumb-link { display: block; margin: -6px 0 18px; }
.service-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(127, 127, 127, .18);
    transition: transform .35s ease;
}
.service-thumb-link:hover .service-thumb { transform: scale(1.02); }

/* =========================================================================
   How We Work — 7 step timeline
   ========================================================================= */
.aj-process-sub {
    max-width: 640px;
    margin: 14px auto 0;
    opacity: .75;
    line-height: 1.7;
}

.aj-process-timeline {
    list-style: none;
    margin: 48px auto 0;
    padding: 0;
    max-width: 820px;
}

.aj-process-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 30px;
}
.aj-process-item:last-child { padding-bottom: 0; }

.aj-process-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aj-process-num {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #111827));
    box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
    z-index: 1;
}

.aj-process-line {
    flex: 1 1 auto;
    width: 2px;
    margin-top: 6px;
    background: linear-gradient(180deg, var(--primary, #4f46e5), rgba(127, 127, 127, .25));
    border-radius: 2px;
    min-height: 40px;
}

.aj-process-content { padding-top: 6px; }

.aj-process-title {
    font-size: 1.18rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 8px;
    letter-spacing: -.01em;
}

.aj-process-desc {
    margin: 0;
    line-height: 1.7;
    opacity: .78;
    font-size: .96rem;
}

.aj-process-img {
    display: block;
    margin-top: 14px;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(127, 127, 127, .18);
}

@media (max-width: 600px) {
    .aj-process-item { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
    .aj-process-num { width: 38px; height: 38px; flex-basis: 38px; font-size: .9rem; }
    .aj-process-title { font-size: 1.05rem; }
}
