:root {
    --ps-primary: #B1845A;
    --ps-primary-dark: #8A5B3D;
    --ps-primary-light: #C89D73;
    --ps-charcoal: #171717;
    --ps-charcoal-dark: #121212;
    --ps-dark-gray: #2D2F33;
    --ps-steel-gray: #666B70;
    --ps-light-gray: #D6D8DB;
    --ps-white: #FFFFFF;
    --color-primary: #2D2F33;
    --color-primary-dark: #171717;
    --color-accent: #B1845A;
    --color-accent-dark: #8A5B3D;
    --color-accent-light: rgba(177, 132, 90, 0.18);
    --color-secondary-dark: #8A5B3D;

    --color-background: #171717;
    --color-background-light: #1e2024;
    --color-surface: #2D2F33;
    --color-surface-hover: #373A3F;
    --color-border: rgba(214, 216, 219, 0.10);
    --color-border-light: rgba(214, 216, 219, 0.12);
    --color-border-accent: rgba(177, 132, 90, 0.35);

    --color-text-primary: #FFFFFF;
    --color-text-secondary: #D6D8DB;
    --color-text-muted: #8E949B;
    --color-white: #FFFFFF;
    --color-black: #000000;

    --color-gray-50: #1e2024;
    --color-gray-100: #2D2F33;
    --color-gray-200: rgba(214, 216, 219, 0.12);
    --color-gray-300: rgba(214, 216, 219, 0.20);
    --color-gray-400: #666B70;
    --color-gray-500: #8E949B;
    --color-gray-600: #D6D8DB;
    --color-gray-700: #E5E8EB;
    --color-gray-800: #F0F2F4;
    --color-gray-900: #FFFFFF;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.40);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.65);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.75);
    --shadow-bronze: 0 0 22px rgba(177, 132, 90, 0.28);
    --shadow-card: 0 14px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(177, 132, 90, 0.20);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-studio-wrapper {
    background-color: var(--ps-charcoal);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(177, 132, 90, 0.09) 0%, transparent 60%);
    color: var(--ps-light-gray);
    padding-top: calc(var(--header-height, 90px) + 1.5rem);
    padding-bottom: 5rem;
    min-height: 100vh;
}

.ps-studio-container {
    max-width: 1520px;
    width: 94%;
    margin: 0 auto;
}

.ps-studio-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(45, 47, 51, 0.80);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ps-studio-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ps-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ps-studio-back-link:hover {
    color: var(--ps-primary-light);
}

.ps-studio-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--ps-steel-gray);
    font-weight: 600;
}

.ps-studio-breadcrumbs a {
    color: var(--ps-steel-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ps-studio-breadcrumbs a:hover {
    color: var(--ps-primary);
}

.ps-studio-breadcrumbs span.current {
    color: var(--ps-white);
    font-weight: 700;
}

.ps-studio-share-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-studio-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(45, 47, 51, 0.70);
    border: 1px solid var(--color-border-accent);
    color: var(--ps-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.ps-studio-btn-icon:hover {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    color: var(--ps-white);
    box-shadow: 0 4px 14px rgba(177, 132, 90, 0.40);
}

.ps-hero-gallery {
    width: 100%;
    margin-bottom: 2.5rem;
}

.ps-hero-main {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ps-dark-gray);
    border: 1px solid var(--color-border-accent);
    box-shadow: var(--shadow-card);
}

.ps-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.ps-hero-main:hover img {
    transform: scale(1.02);
}

.ps-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(23, 23, 23, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ps-white);
}

.ps-hero-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ps-primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ps-hero-nav {
    display: flex;
    gap: 8px;
}

.ps-hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(177, 132, 90, 0.20);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(177, 132, 90, 0.35);
    color: var(--ps-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.ps-hero-arrow:hover {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    box-shadow: 0 4px 14px rgba(177, 132, 90, 0.45);
}

.ps-hero-counter {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(23, 23, 23, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(177, 132, 90, 0.30);
    color: var(--ps-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.ps-hero-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(177, 132, 90, 0.40) transparent;
}

.ps-hero-thumbs::-webkit-scrollbar {
    height: 4px;
}

.ps-hero-thumbs::-webkit-scrollbar-thumb {
    background: rgba(177, 132, 90, 0.40);
    border-radius: 2px;
}

.ps-hero-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.ps-hero-thumb.active {
    border-color: var(--ps-primary);
    opacity: 1;
    box-shadow: 0 0 12px rgba(177, 132, 90, 0.45);
}

.ps-hero-thumb:hover {
    opacity: 0.85;
}

.ps-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-info-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.ps-studio-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ps-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ps-studio-project-title {
    font-family: var(--font-bold, 'IBM Plex Sans Arabic', sans-serif);
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ps-white);
    margin: 0 0 0.75rem 0;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.ps-studio-project-excerpt {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--ps-light-gray);
    margin-bottom: 1.25rem;
}

.ps-studio-metrics-strip {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(30, 32, 36, 0.80);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-lg);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.ps-studio-metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-studio-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(177, 132, 90, 0.15);
    border: 1px solid rgba(177, 132, 90, 0.30);
    color: var(--ps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.ps-studio-metric-text {
    display: flex;
    flex-direction: column;
}

.ps-studio-metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ps-steel-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ps-studio-metric-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ps-white);
}

.ps-studio-action-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ps-dark-gray);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md), var(--shadow-bronze);
}

.ps-studio-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--ps-primary);
    color: var(--ps-white);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(191, 142, 95, 0.35);
    transition: all 0.3s ease;
}

.ps-studio-btn-primary:hover {
    background: var(--ps-steel-gray);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 107, 112, 0.45);
    color: var(--ps-white);
}

.ps-studio-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: #25D366;
    color: var(--ps-white);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.ps-studio-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.40);
    color: var(--ps-white);
}

.ps-studio-story-card {
    background: var(--ps-dark-gray);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.ps-studio-story-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 0 10px rgba(177, 132, 90, 0.4);
}

.ps-studio-tab-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border-accent);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0;
}

.ps-studio-tab-btn {
    padding: 10px 22px;
    font-family: var(--font-bold, 'IBM Plex Sans Arabic', sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ps-steel-gray);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-studio-tab-btn:hover {
    color: var(--ps-light-gray);
}

.ps-studio-tab-btn.active {
    color: var(--ps-primary);
    border-bottom-color: var(--ps-primary);
}

.ps-studio-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ps-studio-tab-content.active {
    display: block;
    opacity: 1;
}

.ps-studio-rich-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ps-light-gray);
}

.ps-studio-rich-text p {
    margin-bottom: 1.4rem;
    color: var(--ps-light-gray);
}

.ps-studio-rich-text h2,
.ps-studio-rich-text h3 {
    color: var(--ps-white);
    font-weight: 800;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.ps-studio-rich-text h2 {
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-accent);
}

.ps-studio-rich-text h3 {
    font-size: 1.05rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--ps-primary);
}

.ps-studio-rich-text ul {
    list-style: none;
    padding-inline-start: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ps-studio-rich-text ul li {
    padding-inline-start: 1.5rem;
    position: relative;
    color: var(--ps-light-gray);
}

.ps-studio-rich-text ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ps-primary);
    box-shadow: 0 0 6px rgba(177, 132, 90, 0.5);
}

.ps-studio-scope-callout {
    background: rgba(177, 132, 90, 0.10);
    border-inline-start: 4px solid var(--ps-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.ps-studio-scope-callout h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ps-primary-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-studio-scope-callout p {
    font-size: 0.95rem;
    color: var(--ps-light-gray);
    margin: 0;
    line-height: 1.75;
}

.ps-studio-related-section {
    margin-top: 3.5rem;
}

.ps-studio-related-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ps-white);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-studio-related-title i {
    color: var(--ps-primary);
}

.ps-studio-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ps-studio-rel-card {
    background: var(--ps-dark-gray);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.ps-studio-rel-card:hover {
    transform: translateY(-5px);
    border-color: var(--ps-primary);
    box-shadow: var(--shadow-card);
}

.ps-studio-rel-img {
    height: 200px;
    overflow: hidden;
}

.ps-studio-rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ps-studio-rel-card:hover .ps-studio-rel-img img {
    transform: scale(1.06);
}

.ps-studio-rel-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ps-studio-rel-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ps-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ps-studio-rel-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ps-white);
    line-height: 1.3;
}


@media screen and (max-width: 1024px) {
    .ps-info-section {
        grid-template-columns: 1fr;
    }

    .ps-hero-main {
        height: 50vh;
        min-height: 320px;
    }
}

@media screen and (max-width: 575px) {
    .ps-hero-main {
        height: 40vh;
        min-height: 260px;
        border-radius: var(--radius-lg);
    }

    .ps-hero-thumb {
        width: 72px;
        height: 50px;
    }

    .ps-studio-story-card {
        padding: 1.5rem 1rem;
    }
}