/* Project details — polished Volnyn marketplace typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.pd-page {
    --pd-ink: #0f172a;
    --pd-muted: #64748b;
    --pd-soft: #475569;
    --pd-line: #e2e8f0;
    --pd-bg: #f8fafc;
    --pd-card: #ffffff;
    --pd-accent: #16a34a;
    --pd-accent-ink: #15803d;
    --pd-radius: 14px;
    --pd-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-family: var(--pd-font) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--pd-ink);
    background: var(--pd-bg) !important;
    padding: 0 0 3.5rem !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Kill theme font conflicts on every child */
.pd-page,
.pd-page *,
.pd-page h1,
.pd-page h2,
.pd-page h3,
.pd-page h4,
.pd-page h5,
.pd-page h6,
.pd-page p,
.pd-page a,
.pd-page li,
.pd-page span,
.pd-page strong,
.pd-page button,
.pd-page input,
.pd-page label {
    font-family: var(--pd-font) !important;
}

.pd-page .container {
    max-width: 1180px !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.pd-page .banner-inner-area,
.pd-page .category-nav-area,
.pd-page .homepage-category-strip,
.pd-page + .banner-inner-area {
    display: none !important;
}

.pd-page .preview-area,
.pd-page .section-bg-2,
.pd-page .blue-bg {
    background: transparent !important;
    padding: 1.75rem 0 0 !important;
}

/* ── Title + seller ── */
.pd-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pd-top__title,
.pd-page .pd-top .project-preview-contents-title,
.pd-page h1.pd-top__title,
.pd-page h1.project-preview-contents-title {
    display: block !important;
    margin: 0 !important;
    font-family: var(--pd-font) !important;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: -0.03em !important;
    line-height: 1.25 !important;
    color: var(--pd-ink) !important;
    text-transform: none !important;
}

.pd-page .project-preview-contents-title {
    display: none !important;
}

.pd-page .pd-top .project-preview-contents-title {
    display: block !important;
}

.pd-page .jobFilter-proposal-author-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    flex-shrink: 0;
    background: #e2e8f0;
    border: 1px solid var(--pd-line);
}

.pd-page .jobFilter-proposal-author-thumb img,
.pd-page .jobFilter-proposal-author-thumb .avatar-initial {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--pd-ink) !important;
}

.pd-page .single-freelancer-author-name {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.015em !important;
}

.pd-page .single-freelancer-author-name a {
    color: var(--pd-ink) !important;
    text-decoration: none !important;
}

.pd-page .single-freelancer-author-name a:hover {
    color: var(--pd-accent) !important;
}

.pd-page .jobFilter-proposal-author-contents-subtitle {
    margin: 0.2rem 0 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--pd-muted) !important;
    line-height: 1.4 !important;
}

.pd-page .jobFilter-proposal-author-flex {
    display: flex !important;
    align-items: center !important;
    gap: 0.9rem !important;
    margin: 0 !important;
}

.pd-page .myJob-wrapper-single-flex {
    align-items: flex-start !important;
    gap: 1rem;
    margin-bottom: 0 !important;
}

.pd-page .project-details-custom-badge {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    background: #ecfdf5 !important;
    color: #166534 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.pd-page .languages {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pd-page .languages .language-tag {
    border: 1px solid var(--pd-line) !important;
    background: #f8fafc !important;
    color: var(--pd-soft) !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.pd-page .jobFilter-proposal-author-contents-review,
.pd-page .jobFilter-proposal-author-contents-review * {
    font-size: 0.85rem !important;
    color: var(--pd-muted) !important;
    font-weight: 600 !important;
}

.pd-page .btn-outline-gray,
.pd-page .btn-profile.btn-outline-gray {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: var(--pd-ink) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.1rem !important;
    letter-spacing: -0.01em !important;
}

.pd-page .btn-outline-gray:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

/* ── Cards ── */
.pd-page .project-preview {
    background: var(--pd-card) !important;
    border: 1px solid var(--pd-line) !important;
    border-radius: var(--pd-radius) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.12) !important;
    padding: 1.35rem 1.4rem !important;
    margin-bottom: 1.25rem !important;
}

.pd-page .project-preview-head {
    border-bottom: 1px solid var(--pd-line) !important;
    padding-bottom: 0.85rem !important;
    margin-bottom: 1rem !important;
}

.pd-page .project-preview-head-title {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--pd-ink) !important;
    line-height: 1.25 !important;
}

/* ── Description body (auto-fill HTML + seller HTML) ── */
.pd-page .project-preview-contents {
    margin-top: 1rem !important;
}

.pd-page .project-preview-contents-para {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: var(--pd-muted) !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.pd-page .project-preview-contents-para p {
    margin: 0 0 0.85rem !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: var(--pd-muted) !important;
}

.pd-page .project-preview-contents-para h3,
.pd-page .project-preview-contents-para h4,
.pd-page .project-preview-contents-para h5 {
    margin: 1.25rem 0 0.5rem !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    color: var(--pd-ink) !important;
}

.pd-page .project-preview-contents-para h3:first-child,
.pd-page .project-preview-contents-para h4:first-child,
.pd-page .project-preview-contents-para h5:first-child,
.pd-page .project-preview-contents-para > *:first-child {
    margin-top: 0 !important;
}

.pd-page .project-preview-contents-para ul,
.pd-page .project-preview-contents-para ol {
    margin: 0 0 1rem !important;
    padding-left: 1.15rem !important;
}

/* Kill theme `ol li:before { content: counter }` double-numbering */
.pd-page .project-preview-contents-para ol {
    list-style: decimal !important;
    counter-reset: none !important;
}

.pd-page .project-preview-contents-para ol li::before,
.pd-page .project-preview-contents-para ol li:before {
    content: none !important;
    display: none !important;
    counter-increment: none !important;
    margin: 0 !important;
}

.pd-page .project-preview-contents-para ul {
    list-style: disc !important;
}

.pd-page .project-preview-contents-para ul li::before,
.pd-page .project-preview-contents-para ul li:before {
    content: none !important;
    display: none !important;
}

.pd-page .project-preview-contents-para li {
    margin: 0 0 0.35rem !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: var(--pd-muted) !important;
    font-weight: 500 !important;
}

.pd-page .project-preview-contents-para strong,
.pd-page .project-preview-contents-para b {
    color: var(--pd-ink) !important;
    font-weight: 700 !important;
}

.pd-page .project-preview-contents-para a {
    color: var(--pd-accent-ink) !important;
    font-weight: 600 !important;
}

/* ── Gallery (aspect-ratio; do NOT absolute-position Swiper wrapper) ── */
.pd-page .project-images-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 0.35rem;
    border: 1px solid var(--pd-line);
    background: #fff;
}

.pd-page .project-images-slider.is-empty .main-slider {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.pd-page .main-slider {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    height: auto !important;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.pd-page .main-slider .swiper-wrapper {
    height: 100% !important;
}

.pd-page .main-slider .swiper-slide {
    height: 100% !important;
    position: relative !important;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.pd-page .main-slider img,
.pd-page .main-slider .img-fluid {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #f1f5f9;
    display: block !important;
    border-radius: 0 !important;
}

.pd-page .main-slider .pd-gallery-empty,
.pd-page .main-slider .swiper-slide.pd-slide-broken {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--pd-muted);
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}

.pd-page .main-slider .swiper-slide.pd-slide-broken::after {
    content: 'Image unavailable';
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.pd-page .main-slider .pd-gallery-empty i {
    font-size: 1.75rem !important;
    color: #94a3b8;
}

.pd-page .thumbnail-slider {
    width: 84px;
    margin: 0;
    align-self: stretch;
    overflow: hidden;
    padding: 8px 8px 8px 0;
    flex-shrink: 0;
}

.pd-page .thumbnail-slider .swiper-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
    padding: 0;
}

.pd-page .thumbnail-slider .swiper-slide {
    opacity: 0.55;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    height: 60px !important;
    margin: 0 !important;
    transition: opacity .2s ease, border-color .2s ease;
}

.pd-page .thumbnail-slider .swiper-slide img,
.pd-page .thumbnail-slider .swiper-slide .img-fluid {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
}

.pd-page .thumbnail-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--pd-accent) !important;
}

.pd-page .slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 10;
    pointer-events: none;
}

.pd-page .slider-nav-btn {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    border: 0;
    color: var(--pd-ink);
    font-size: 0.85rem !important;
}

.pd-page .slider-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 5;
}

.pd-page .swiper-pagination-bullet-active {
    background: var(--pd-accent) !important;
}

/* ── Package sidebar ── */
.pd-page .sticky-sidebar .project-preview {
    position: sticky;
    top: 1rem;
    padding: 1.15rem !important;
}

.pd-page .project-preview-tab .tabs {
    display: flex !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 0 1rem !important;
    padding: 4px !important;
    background: #f1f5f9 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid var(--pd-line) !important;
}

.pd-page .project-preview-tab .tabs li {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.75rem 0.4rem !important;
    margin: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: var(--pd-muted) !important;
    cursor: pointer !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.pd-page .project-preview-tab .tabs li.active {
    background: #fff !important;
    color: var(--pd-accent-ink) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.pd-page .project-preview-tab .tabs li.pe-none {
    opacity: 0.35;
}

.pd-page .project-preview-tab-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.pd-page .project-preview-tab-header-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem !important;
    border: 1px solid var(--pd-line) !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.pd-page .project-preview-tab-inner-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem;
    padding: 0.65rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.92rem !important;
}

.pd-page .project-preview-tab-inner-item:last-child {
    border-bottom: 0 !important;
    padding-top: 0.9rem !important;
}

.pd-page .project-preview-tab-header-item .left,
.pd-page .project-preview-tab-inner-item .left {
    color: var(--pd-muted) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.pd-page .project-preview-tab-header-item .right,
.pd-page .project-preview-tab-header-item strong.right,
.pd-page .project-preview-tab-inner-item .right {
    color: var(--pd-ink) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.pd-page .left.price-title,
.pd-page .price-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--pd-ink) !important;
}

.pd-page .right.price,
.pd-page .price-new {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--pd-ink) !important;
}

.pd-page .price-old,
.pd-page .right.price s {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    margin-right: 0.4rem;
}

.pd-page .check-icon {
    color: var(--pd-accent) !important;
    font-size: 0.95rem !important;
}

.pd-page .close-icon,
.pd-page .close-close {
    color: #cbd5e1 !important;
}

.pd-page .btn-bg-1,
.pd-page .btn-profile.btn-bg-1,
.pd-page .checkout-button {
    background: var(--pd-accent) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1.15rem !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 10px 22px -12px rgba(22, 163, 74, 0.75) !important;
}

.pd-page .btn-bg-1:hover,
.pd-page .checkout-button:hover {
    background: var(--pd-accent-ink) !important;
    color: #fff !important;
}

.pd-page .flex-btn {
    display: flex !important;
    gap: 0.7rem !important;
    flex-wrap: wrap;
}

.pd-page .flex-btn > a {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
}

.pd-page .compareBtn {
    color: var(--pd-accent-ink) !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-decoration: none !important;
}

.pd-page .compareBtn:hover {
    text-decoration: underline !important;
}

/* ── Compare packages — tighter, readable ── */
.pd-page .comparison-grid {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) 2.2fr;
    gap: 1rem;
    align-items: start;
}

.pd-page .comparison-features .comparison-title {
    margin: 0 0 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--pd-ink) !important;
}

.pd-page .comparison-features .features-list {
    margin: 0 !important;
    padding: 0 !important;
}

.pd-page .comparison-features .features-list li {
    padding: 0.7rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.9rem !important;
    color: var(--pd-muted) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    list-style: none !important;
}

.pd-page .comparison-packages {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.pd-page .package-column {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.pd-page .package-card {
    border: 1px solid var(--pd-line) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.pd-page .package-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0.8rem 0.75rem !important;
    background: #f8fafc;
    border-bottom: 1px solid var(--pd-line);
    text-align: center !important;
    letter-spacing: -0.02em !important;
}

.pd-page .package-feature-item {
    padding: 0.7rem 0.6rem !important;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--pd-ink) !important;
    line-height: 1.35 !important;
    min-height: 2.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-page .package-feature-item.price-col,
.pd-page .package-feature-item .price-new {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

/* ── Similar services ── */
.pd-page .similar-services,
.pd-page .single-profiles,
.pd-page .profile-wrapper,
.pd-page .compact-project-card,
.pd-page .similar-project-slide {
    font-family: var(--pd-font) !important;
}

.pd-page .project-preview#similarProjects,
.pd-page #similarProjects.project-preview {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.5rem 0 0 !important;
}

.pd-page .similar-projects-carousel-wrapper {
    margin-top: 0.75rem !important;
}

.pd-page .carousel-arrow {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 1px solid var(--pd-line) !important;
    background: #fff !important;
    color: var(--pd-ink) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

.pd-page .compact-project-card,
.pd-page .similar-project-slide {
    background: #fff !important;
    border: 1px solid var(--pd-line) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.pd-page .compact-project-card h4,
.pd-page .compact-project-card .single-project-content-title,
.pd-page .similar-project-slide h4,
.pd-page .similar-project-slide a {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.35 !important;
    color: var(--pd-ink) !important;
}

@media (max-width: 991px) {
    .pd-page .thumbnail-slider {
        display: none;
    }

    .pd-page .main-slider {
        aspect-ratio: 16 / 11;
    }

    .pd-page .sticky-sidebar .project-preview {
        position: static;
    }

    .pd-page .comparison-grid {
        grid-template-columns: 1fr;
    }

    .pd-page .comparison-packages {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 767px) {
    .pd-top__title,
    .pd-page .pd-top .project-preview-contents-title {
        font-size: 1.4rem !important;
    }

    .pd-page .project-preview {
        padding: 1.1rem !important;
    }

    .pd-page .comparison-packages {
        flex-direction: column !important;
    }
}
