:root {
    --ps-bg: #0b1220;
    --ps-bg-soft: #111827;
    --ps-surface: #0f172a;
    --ps-gold: #c8a45d;
    --ps-gold-soft: rgba(200, 164, 93, 0.16);
    --ps-text: #ffffff;
    --ps-text-muted: rgba(255, 255, 255, 0.72);
    --ps-text-soft: rgba(255, 255, 255, 0.48);
    --ps-border: rgba(255, 255, 255, 0.12);
    --ps-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    --ps-radius: 24px;
    --ps-slider-height: 720px;
    --ps-caption-height: 130px;
}

.ps-slider-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 20px;
    direction: rtl;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

.ps-slider-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.ps-slider-heading {
    max-width: 720px;
}

.ps-section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ps-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ps-section-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.3;
    font-weight: 800;
    color: #111827;
}

.ps-global-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.ps-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    background: var(--ps-bg);
    min-height: var(--ps-slider-height);
}

.ps-slides {
    position: relative;
    width: 100%;
    min-height: var(--ps-slider-height);
}

.ps-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.ps-slide.ps-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ps-slide-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: var(--ps-slider-height);
    height: var(--ps-slider-height);
    background: var(--ps-bg);
}

.ps-image-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--ps-slider-height);
    height: var(--ps-slider-height);
    background: #0a0f1a;
}

.ps-image-main {
    position: relative;
    height: calc(var(--ps-slider-height) - var(--ps-caption-height));
    min-height: calc(var(--ps-slider-height) - var(--ps-caption-height));
    overflow: hidden;
}

.ps-image-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11,18,32,0.10) 0%, rgba(11,18,32,0.38) 52%, rgba(11,18,32,0.62) 100%);
    pointer-events: none;
}

.ps-slide-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.015);
    transition: transform 1.2s ease;
}

.ps-slide.ps-active .ps-slide-img {
    transform: scale(1);
}

.ps-image-caption {
    height: var(--ps-caption-height);
    min-height: var(--ps-caption-height);
    padding: 20px 28px;
    background:
        linear-gradient(180deg, #06101f 0%, #081425 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
}

.ps-image-caption p {
    margin: 0;
    color: rgba(255,255,255,0.84);
    font-size: 15.5px;
    line-height: 2;
}

.ps-image-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 999px;
}

.ps-content-side {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    min-height: var(--ps-slider-height);
    height: var(--ps-slider-height);
    background:
        radial-gradient(circle at top left, rgba(200, 164, 93, 0.10), transparent 35%),
        linear-gradient(180deg, #111827 0%, #0b1220 100%);
    color: var(--ps-text);
    overflow: visible;
}

.ps-content-body {
    overflow: visible;
}

.ps-content-top {
    margin-bottom: 18px;
}

.ps-content-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ps-subtitle {
    display: inline-block;
    color: var(--ps-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ps-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--ps-text-soft);
    font-weight: 700;
}

.ps-current {
    color: var(--ps-gold);
    font-size: 30px;
    line-height: 1;
}

.ps-divider,
.ps-total {
    color: rgba(255, 255, 255, 0.35);
    font-size: 16px;
}

.ps-title {
    margin: 0 0 18px;
    color: var(--ps-text);
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.45;
    font-weight: 800;
    max-width: 520px;
}

.ps-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--ps-border);
}

.ps-meta-item {
    padding: 14px 16px;
    border: 1px solid var(--ps-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.ps-meta-item-full {
    grid-column: 1 / -1;
}

.ps-meta-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--ps-text-soft);
    font-size: 12px;
    font-weight: 500;
}

.ps-meta-item strong {
    display: block;
    color: var(--ps-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    word-break: break-word;
}

.ps-date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.ps-date-range.ps-date-range-single {
    grid-template-columns: 1fr;
}

.ps-date-box {
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.ps-date-box small {
    display: block;
    margin-bottom: 6px;
    color: var(--ps-text-soft);
    font-size: 11px;
}

.ps-date-box strong {
    font-size: 14px;
    color: #fff;
    line-height: 1.8;
    word-break: break-word;
}

.ps-project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 24px;
    color: var(--ps-gold);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.ps-project-link svg {
    transition: transform 0.3s ease;
}

.ps-project-link:hover {
    color: #ffffff;
}

.ps-project-link:hover svg {
    transform: translateX(-4px);
}

.ps-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
}

.ps-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: rgba(17, 24, 39, 0.22);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.ps-dot:hover {
    background: rgba(17, 24, 39, 0.42);
}

.ps-dot.ps-active {
    width: 34px;
    background: var(--ps-gold);
}

.ps-dot-hidden {
    display: none;
}

.ps-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.ps-btn-prev,
.ps-btn-next {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    color: #111827;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ps-btn-prev:hover,
.ps-btn-next:hover {
    background: var(--ps-gold);
    border-color: var(--ps-gold);
    color: #0b1220;
    transform: translateY(-2px);
}

.ps-btn-prev:active,
.ps-btn-next:active {
    transform: scale(0.96);
}

@media (max-width: 1100px) {
    :root {
        --ps-slider-height: auto;
        --ps-caption-height: auto;
    }

    .ps-slide-inner {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .ps-slider-wrapper,
    .ps-slides,
    .ps-image-side,
    .ps-content-side {
        min-height: auto;
        height: auto;
    }

    .ps-image-main {
        height: auto;
        min-height: 0;
        aspect-ratio: 14 / 9;
    }

    .ps-image-caption {
        height: auto;
        min-height: auto;
    }

    .ps-content-side {
        padding: 34px 26px;
    }
}

@media (max-width: 768px) {
    .ps-slider-container {
        padding: 28px 14px;
    }

    .ps-slider-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ps-global-controls {
        justify-content: space-between;
        gap: 12px;
    }

    .ps-pagination {
        gap: 8px;
    }

    .ps-content-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .ps-meta-grid {
        grid-template-columns: 1fr;
    }

    .ps-date-range {
        grid-template-columns: 1fr;
    }

    .ps-image-badge {
        top: 20px;
        right: 20px;
    }

    .ps-content-side {
        padding: 28px 20px;
    }

    .ps-title {
        font-size: 24px;
        line-height: 1.6;
    }

    .ps-image-caption {
        padding: 18px 20px;
    }

    .ps-image-caption p {
        font-size: 15px;
        line-height: 1.9;
    }

    .ps-dot {
        width: 8px;
        height: 8px;
    }

    .ps-dot.ps-active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .ps-global-controls {
        gap: 10px;
    }

    .ps-pagination {
        gap: 6px;
    }

    .ps-btn-prev,
    .ps-btn-next {
        width: 42px;
        height: 42px;
    }

    .ps-dot.ps-active {
        width: 22px;
    }

    .ps-image-main {
        aspect-ratio: 14 / 9;
    }
}
