/*
 * Service details (/projects/freelancer/{slug}). Builds on al-samples.css tokens (.al-scope).
 * Everything new is prefixed with "al-"; the legacy left-column markup is only reskinned via .al-pd.
 */
.al-pd { padding-top: 24px; }
.al-pd .al-crumbs { margin-bottom: 20px; }
.al-pd .al-crumbs span[aria-current] { color: var(--al-text); }
.al-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- left column: white page, bordered cards instead of gray page + white boxes ---- */
.al-pd .project-preview {
    background: var(--al-surface); border: 1px solid var(--al-border); border-radius: var(--al-radius);
    padding: 24px; margin-bottom: 24px; box-shadow: none;
}
.al-pd .project-preview-contents-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--al-text); }
.al-pd .project-preview-contents-para { color: #334155; line-height: 1.7; }
.al-pd-head { margin-bottom: 0; padding-bottom: 30px; }
.al-pd-head .al-crumbs { margin-bottom: 10px; }
.al-pd-title { margin: 0; font-size: 30px; line-height: 1.25; }
@media (max-width: 575px) { .al-pd-title { font-size: 26px; } }
.al-pd { --al-brand: #1e2a78; --al-brand-strong: #17206a; }

/* gallery: arrows straddle the slider edge (half outside); z-index keeps them above neighbouring cards */
.al-pd .project-gallery { position: relative; }
.al-pd .gallery-item img, .al-pd .gallery-item video, .al-pd .gallery-item iframe { border-radius: 12px; }
.al-pd .gallery-prev, .al-pd .gallery-next {
    width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; padding: 0;
    background: rgba(255, 255, 255, .92); transition: background .15s; z-index: 20;
}
.al-pd .gallery-prev { left: -22px; }
.al-pd .gallery-next { right: -22px; }
.al-pd .gallery-prev:hover, .al-pd .gallery-next:hover { background: #fff; }
.al-pd .gallery-prev::before, .al-pd .gallery-next::before { top: 0; left: 0; width: 24px; height: 24px; display: block; position: static; }
.al-pd .gallery-prev:focus-visible, .al-pd .gallery-next:focus-visible { outline: 3px solid var(--al-accent-soft); box-shadow: 0 0 0 2px var(--al-brand); }
.al-pd .profile-border-bottom { border-color: var(--al-border); }
.al-pd .project-preview-head-title { font-size: 20px; font-weight: 700; }
.al-pd .pricing-wrapper { border-radius: 12px; }

/* ---- right column: package box ---- */
.al-pkgwrap { top: 24px; }
.al-pkg { background: var(--al-surface); border: 1px solid var(--al-border); border-radius: var(--al-radius) var(--al-radius) 0 0; overflow: hidden; }
.al-pkg ul.al-pkg__tabs { display: flex; gap: 0; margin: 0; padding: 0; border-radius: 0; box-shadow: none; list-style: none; border-bottom: 1px solid var(--al-border); background: var(--al-bg); }
.al-pkg ul.al-pkg__tabs li {
    flex: 1 1 0; margin: 0; border-radius: 0; text-align: center; padding: 16px 8px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--al-muted);
    border-bottom: 3px solid transparent; margin-bottom: -1px; border-left: 1px solid var(--al-border);
    cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s, background .15s, border-color .15s;
}
.al-pkg ul.al-pkg__tabs li:first-child { border-left: 0; }
.al-pkg ul.al-pkg__tabs li::before { display: none; }
.al-pkg ul.al-pkg__tabs li:hover { color: var(--al-text); }
.al-pkg ul.al-pkg__tabs li.active { background: var(--al-surface); border-bottom-color: var(--al-brand); color: var(--al-brand); }
.al-pkg ul.al-pkg__tabs li.is-off { opacity: .45; }
.al-pkg__body { padding: 24px; }
.al-pkg__name { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--al-text); }
.al-pkg__price { display: block; margin: 0 0 16px; padding: 0; border: 0; }
.al-pkg__price .price { display: inline-flex; align-items: baseline; gap: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--al-text); }
.al-pkg__price .price s { font-size: 16px; font-weight: 400; color: var(--al-muted); }
.al-pkg__info { margin: 0 0 16px; color: var(--al-muted); font-size: 15px; line-height: 1.55; }
.al-pkg__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--al-text); }
.al-pkg__meta i { margin-right: 6px; color: var(--al-muted); }
.al-pkg__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.al-pkg__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--al-text); }
.al-pkg__list li i { margin-top: 3px; font-size: 13px; flex: none; color: var(--al-text); }
.al-pkg__list li.is-off { color: #94a3b8; }
.al-pkg__list li.is-off i { color: #cbd5e1; }
.al-pkg__compare { display: block; margin-top: 16px; text-align: center; font-size: 14px; color: var(--al-muted); text-decoration: underline; }
.al-pkg__compare:hover { color: var(--al-accent); }

/* buttons */
.al-btn--block { border-radius: 0; display: flex; width: 100%; justify-content: center; height: 48px; position: relative; }
.al-btn--block i { position: absolute; right: 20px; }
.al-btn--dark { background: var(--al-brand, #1e2a78); color: #fff; }
.al-btn--dark:hover { background: var(--al-brand-strong, #17206a); color: #fff; }
.al-btn--pill { border-radius: 999px; }
.al-btn--pill:hover, .al-btn--pill:focus-visible { background: var(--al-accent); color: #fff; }
.al-btn--outline { background: var(--al-surface); color: var(--al-text); border-color: #94a3b8; }
.al-btn--outline:hover { background: var(--al-chip); color: var(--al-text); border-color: var(--al-text); }
.al-btn.disabled-link { background: #cbd5e1 !important; color: #fff; }
.al-pkg__list li:not(.is-off) i { color: var(--al-brand); }

.al-contact { margin-top: 16px; padding: 16px; border: 1px solid var(--al-border); border-radius: 0; background: var(--al-bg); }
.al-note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--al-accent-soft); color: var(--al-accent-strong); font-size: 14px; line-height: 1.5; }

@media (max-width: 991px) { .al-pkgwrap { position: static; } }
@media (max-width: 575px) { .al-pkg__body { padding: 20px; } .al-pd .project-preview { padding: 18px; } }
