/*
Theme Name: Zandi Header Theme
Theme URI: https://example.com
Author: Custom Build
Description: نسخه جدید و مستقل قالب Zandi Trading Group با هدر و بخش هیرو کامل و کارت‌های پرچم. این یک قالب کاملاً جدا و مستقل است و هیچ فایلی از قالب قبلی را جایگزین نمی‌کند.
Version: 2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: zandi-header-theme
*/

/* ---------- Reset / Base ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    background-image:
        linear-gradient(rgba(255, 0, 128, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 0, 200, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.zht-top-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #7b2ff7, #f107a3, #7b2ff7);
    background-size: 200% 100%;
    animation: zht-shimmer 6s linear infinite;
}

@keyframes zht-shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Layout ---------- */
.zht-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 120px;
}

.zht-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 980px) {
    .zht-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .zht-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card ---------- */
.zht-card {
    position: relative;
    background: #17141c;
    border-radius: 16px;
    padding: 30px 24px 34px;
    text-align: center;
    box-shadow: 0 0 30px rgba(160, 40, 200, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.zht-card:hover,
.zht-card.is-active {
    box-shadow: 0 0 45px rgba(220, 60, 160, 0.35);
    transform: translateY(-2px);
}

.zht-bar {
    height: 6px;
    width: 100%;
    max-width: 130px;
    margin: 0 auto 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, #6a2cf5, #ff7ab8);
}

.zht-flag {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.zht-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zht-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.zht-hint {
    font-size: 14px;
    color: #b9b3c4;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Details overlay (revealed on hover / tap) ---------- */
.zht-details {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #2a0f33, #1a0d22);
    padding: 26px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.zht-card:hover .zht-details,
.zht-card.is-active .zht-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zht-details-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.zht-details-text {
    font-size: 14.5px;
    line-height: 1.9;
    color: #f1e9f5;
    text-align: right;
    overflow-y: auto;
    flex: 1;
    margin: 0;
}

.zht-details-close {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12.5px;
    color: #cbb8d6;
    text-align: center;
}

/* Scrollbar for details text (webkit) */
.zht-details-text::-webkit-scrollbar {
    width: 5px;
}
.zht-details-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
}

/* ======================================================================
   Note / Offer Section (white section after the flag cards)
   ====================================================================== */
.zht-offer {
    position: relative;
    background: #ffffff;
    color: #1b1b24;
    padding: 70px 20px 90px;
}

.zht-offer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.zht-offer-main {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.zht-offer-note-title {
    color: #ff2d55;
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 18px;
    animation: zht-note-blink 1.4s ease-in-out infinite;
}

@keyframes zht-note-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- Note box: soft pastel, organic (non-uniform) rounded shape ---------- */
.zht-note-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 42px 34px;
    border-radius: 60px 22px 55px 26px / 34px 55px 26px 60px;
    background:
        linear-gradient(135deg, rgba(255, 79, 216, 0.10), rgba(138, 75, 255, 0.09) 55%, rgba(91, 107, 255, 0.08));
    box-shadow: 0 25px 55px rgba(138, 75, 255, 0.14), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
    overflow: hidden;
    isolation: isolate;
}

.zht-note-box::before,
.zht-note-box::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    filter: blur(2px);
}

.zht-note-box::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 79, 216, 0.16), transparent 70%);
}

.zht-note-box::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -50px;
    background: radial-gradient(circle at 60% 60%, rgba(91, 107, 255, 0.14), transparent 70%);
}

.zht-note-box .zht-offer-note-title,
.zht-note-box .zht-offer-text {
    max-width: none;
}

.zht-note-box .zht-offer-text:last-child {
    margin-bottom: 0;
}

/* ---------- typewriter cursor ---------- */
.zht-type-target.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 3px;
    background: currentColor;
    vertical-align: -0.15em;
    animation: zht-cursor-blink 0.8s steps(1) infinite;
}

@keyframes zht-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.zht-offer-text {
    max-width: 640px;
    margin: 0 auto 16px;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 800;
    color: #1b1b24;
}

.zht-offer-italic {
    max-width: 640px;
    margin: 30px auto 26px;
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    color: #55555f;
}

.zht-offer-desc {
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 2;
    font-weight: 600;
    color: #4a4a54;
}

/* ---------- pill buttons (Our Team / Product List) ---------- */
.btn-zht-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: linear-gradient(90deg, #ffb020, #ff7a1a);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 130, 30, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-zht-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 130, 30, 0.45);
    color: #ffffff;
}

.btn-zht-pill .material-icons {
    font-size: 16px;
}

.zht-offer-cta {
    margin-bottom: 40px;
}

/* ---------- product quality bar ---------- */
.zht-quality {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.zht-quality-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1b1b24;
}

.zht-quality-bar {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e9e9ee;
    overflow: hidden;
}

.zht-quality-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--ztg-gradient, linear-gradient(90deg, #ff4fd8, #8a4bff, #5b6bff));
    width: 0%;
    transition: width 1.4s ease;
}

.zht-quality.is-in-view .zht-quality-fill {
    /* width set inline via PHP; transition handles the animated fill-in */
}

/* ---------- right side: experience circle / team btn / email ---------- */
.zht-offer-side {
    flex: 0 0 220px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.zht-exp-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(160deg, #ff4fd8, #8a4bff 60%, #6a2cf5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(138, 75, 255, 0.35);
}

.zht-exp-circle-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1.1;
}

.zht-exp-top {
    font-size: 11px;
    font-weight: 600;
    text-transform: lowercase;
    opacity: 0.9;
}

.zht-exp-number {
    font-size: 34px;
    font-weight: 800;
    margin: 2px 0;
}

.zht-exp-bottom {
    font-size: 11px;
    font-weight: 600;
    text-transform: lowercase;
    opacity: 0.9;
}

.zht-offer-email {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1b1b24;
    max-width: 190px;
}

.zht-offer-email-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #16161d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zht-offer-email-text {
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    line-height: 1.35;
    word-break: break-word;
}

/* ======================================================================
   Our Team / Team Members Section (after the Offer / products section)
   ====================================================================== */
.zht-team-section {
    position: relative;
    background-color: #050208;
    background-image: var(--zht-team-bg, none);
    background-size: cover;
    background-position: 68% center;
    background-repeat: no-repeat;
    padding: 90px 20px 100px;
    overflow: hidden;
}

/* روی موبایل و تبلت، تصویر بانک (سمت راست عکس اصلی) در کادر نگه داشته می‌شود
   تا هم روی اندروید و هم روی ویندوز به‌خوبی دیده شود. */
@media (max-width: 900px) {
    .zht-team-section {
        background-position: 78% center;
    }
}

@media (max-width: 560px) {
    .zht-team-section {
        background-position: 85% center;
        background-size: cover;
    }
}

.zht-team-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 50% at 12% 15%, rgba(123, 47, 247, 0.10), transparent 62%),
                radial-gradient(ellipse 50% 45% at 88% 92%, rgba(241, 7, 163, 0.06), transparent 62%),
                linear-gradient(180deg, rgba(3, 1, 6, 0.18) 0%, rgba(3, 1, 6, 0.30) 55%, rgba(3, 1, 6, 0.5) 100%);
    pointer-events: none;
}

.zht-team-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.zht-team-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.zht-team-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff8fd0;
    margin-bottom: 14px;
}

.zht-team-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb020, #ff7a1a);
    box-shadow: 0 0 12px rgba(255, 130, 30, 0.7);
}

.zht-team-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #ffffff;
}

.zht-team-title .zht-team-title-accent {
    background: linear-gradient(90deg, #ffb020, #ff7ab8 55%, #8a4bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zht-team-desc {
    font-size: 15.5px;
    line-height: 1.8;
    color: #cabfd6;
    margin: 0;
}

/* ---------- Carousel (paged, 3D page-flip transition, auto-advance, arrows) ---------- */
.zht-team-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    perspective: 1600px;
}

.zht-team-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 18px;
    margin: 0 -4px;
    flex: 1 1 auto;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 184, 0.4) transparent;
}

.zht-team-track::-webkit-scrollbar {
    height: 6px;
}
.zht-team-track::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 184, 0.35);
    border-radius: 6px;
}

/* وقتی جاوااسکریپت کارت‌ها را به «صفحه»‌های ورق‌خور تبدیل می‌کند */
.zht-team-track.zht-flip-ready {
    display: block;
    position: relative;
    overflow: hidden;
    scroll-snap-type: none;
    transition: height 0.4s ease;
}

.zht-team-page {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: flex-start;
    padding: 6px 4px 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.85s cubic-bezier(0.42, 0.06, 0.18, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.zht-team-page.is-active {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 2;
    pointer-events: auto;
}

.zht-team-page.is-exit-left {
    transform: rotateY(-115deg);
    opacity: 0;
    transform-origin: right center;
}

.zht-team-page.is-exit-right {
    transform: rotateY(115deg);
    opacity: 0;
    transform-origin: left center;
}

.zht-team-page.is-enter-left {
    transform: rotateY(115deg);
    opacity: 0;
    transform-origin: left center;
}

.zht-team-page.is-enter-right {
    transform: rotateY(-115deg);
    opacity: 0;
    transform-origin: right center;
}

@media (prefers-reduced-motion: reduce) {
    .zht-team-page {
        transition: opacity 0.4s ease;
        transform: none !important;
    }
}

.zht-team-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1e9f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.zht-team-arrow:hover {
    background: linear-gradient(135deg, #ffb020, #ff7a1a);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.06);
}

.zht-team-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.zht-team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, #1c1624, #120e17);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 22px 18px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    isolation: isolate;
    cursor: default;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.zht-team-card.has-link {
    cursor: pointer;
}

@media (max-width: 560px) {
    .zht-team-card { width: 172px; padding: 18px 14px 20px; }
    .zht-team-track { gap: 16px; }
    .zht-team-arrow { width: 36px; height: 36px; }
}

.zht-team-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255, 176, 32, 0), rgba(255, 122, 184, 0), rgba(138, 75, 255, 0));
    transition: background 0.35s ease;
}

.zht-team-card:hover,
.zht-team-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(123, 47, 247, 0.28), 0 0 0 1px rgba(255, 122, 184, 0.15) inset;
    color: inherit;
}

.zht-team-card:hover::before {
    background: linear-gradient(140deg, #ffb020, #ff7ab8, #8a4bff);
}

.zht-team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3.4;
    max-height: 190px;
    border-radius: 999px 999px 26px 26px;
    margin: 0 0 20px;
    overflow: hidden;
    background: linear-gradient(150deg, #241a30 0%, #17111f 60%, #0e0a13 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.zht-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zht-team-photo .zht-team-avatar-icon {
    width: 46%;
    height: 46%;
    color: rgba(255, 255, 255, 0.14);
}

.zht-team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.zht-team-name {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.35;
}

.zht-team-role {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 16px;
    background: linear-gradient(90deg, #ffb020, #ff7ab8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zht-team-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zht-team-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #d9cfe2;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.zht-team-card:hover .zht-team-social-icon {
    background: linear-gradient(135deg, #ffb020, #ff7a1a);
    border-color: transparent;
    color: #ffffff;
}

.zht-team-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 46px;
}

.zht-team-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.zht-team-viewall:hover {
    color: #ff9ce7;
    border-color: #ff9ce7;
    gap: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .zht-offer-inner {
        flex-direction: column;
        align-items: center;
    }

    .zht-offer-side {
        order: -1;
        flex: 0 0 auto;
        max-width: 100%;
    }

    .zht-quality {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .zht-offer-note-title {
        font-size: 19px;
    }

    .zht-offer-text {
        font-size: 15.5px;
    }

    .zht-exp-circle {
        width: 110px;
        height: 110px;
    }

    .zht-exp-number {
        font-size: 28px;
    }
}


/* ================================================================
 * Our Team page + Team Member profile page styles
 * (moved here from inline <style> tags for better cache/optimizer compatibility)
 * ================================================================ */

.zht-member-notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; }
.zht-member-notfound-inner .material-icons { font-size: 54px; color: #8a4bff; margin-bottom: 18px; }
.zht-member-notfound-inner h1 { font-size: 28px; font-weight: 800; color: #fff; margin: 0 0 12px; }
.zht-member-notfound-inner p { color: rgba(255,255,255,0.6); font-size: 15px; margin: 0 0 30px; }

/* ================= Team Member Profile (scoped) ================= */
.zht-member { position: relative; }

.zht-member-hero {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: radial-gradient(60% 140% at 50% 0%, rgba(138, 75, 255, 0.22), transparent 70%);
}

.zht-member-hero-rings {
    position: absolute;
    inset: -60% -10% auto -10%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 0%, transparent 0 38%, rgba(255, 79, 216, 0.07) 39% 40%, transparent 41%),
        radial-gradient(circle at 50% 0%, transparent 0 55%, rgba(90, 107, 255, 0.07) 56% 57%, transparent 58%);
    pointer-events: none;
}

.zht-member-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

.zht-about-crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 26px;
}
.zht-about-crumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.zht-about-crumb a:hover { color: #fff; }
.zht-about-crumb-sep { opacity: 0.5; }

.zht-member-card-section {
    position: relative;
    background: #ffffff;
    padding: 0 20px 90px;
}

.zht-member-card {
    position: relative;
    max-width: 720px;
    margin: -90px auto 0;
    background: #ffffff;
    border: 1px solid #eceaf2;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(30, 15, 60, 0.12);
    padding: 0 40px 44px;
    text-align: center;
}

.zht-member-photo {
    display: block;
    width: 152px;
    height: 152px;
    margin: 0 auto 22px;
    margin-top: -76px;
    border-radius: 50%;
    padding: 6px;
    background: var(--ztg-gradient, linear-gradient(135deg, #ff4fd8, #8a4bff, #5b6bff));
    box-shadow: 0 15px 35px rgba(123, 47, 247, 0.3);
}

.zht-member-photo img,
.zht-member-photo .zht-member-avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #f4f2f8;
}

.zht-member-photo .zht-member-avatar-icon {
    padding: 36px;
    box-sizing: border-box;
    color: #b9aed6;
}

.zht-member-name {
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 800;
    color: #1b1b24;
    margin: 0 0 8px;
}

.zht-member-role {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0 0 22px;
    padding: 6px 18px;
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(138, 75, 255, 0.1), rgba(255, 79, 216, 0.1));
    color: #8a4bff;
}

.zht-member-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.zht-member-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f2f8;
    color: #8a4bff;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.zht-member-social-icon:hover {
    background: var(--ztg-gradient, linear-gradient(135deg, #ff4fd8, #8a4bff, #5b6bff));
    color: #fff;
    transform: translateY(-3px);
}

.zht-member-bio {
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.95;
    color: #4a4a54;
    font-weight: 500;
}

.zht-member-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #f0eef5;
}

.zht-member-actions { margin-top: 6px; padding-top: 26px; }

.zht-member-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #6c6c7a;
    text-decoration: none;
}

.zht-member-back:hover { color: #8a4bff; }

@media (max-width: 560px) {
    .zht-member-card { padding: 0 22px 34px; border-radius: 22px; margin-top: -70px; }
    .zht-member-photo { width: 120px; height: 120px; margin-top: -60px; }
    .zht-member-hero { height: 190px; }
}

/* ================================================================
 * Our Team page (fresh alternating-row "story" design)
 * ================================================================ */
.zht-story { position: relative; background: #faf9fc; }

.zht-story-intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    text-align: center;
}

.zht-story-kicker {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(90deg, #8a4bff, #ff4fd8);
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.zht-story-heading {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    color: #1b1b24;
    margin: 0 0 18px;
}

.zht-story-heading-accent {
    background: linear-gradient(90deg, #8a4bff, #ff4fd8, #5b6bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zht-story-lede {
    font-size: 16px;
    line-height: 1.85;
    color: #5c5c68;
    margin: 0 auto;
    max-width: 560px;
}

.zht-story-rule {
    width: 70px;
    height: 4px;
    margin: 32px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffb020, #ff4fd8, #8a4bff);
}

.zht-story-rows {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    display: flex;
    flex-direction: column;
}

.zht-story-row {
    display: flex;
    align-items: center;
    gap: 46px;
    padding: 40px 10px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e9e6f0;
    position: relative;
    transition: background 0.3s ease;
}

.zht-story-row:hover { background: rgba(138, 75, 255, 0.035); }

.zht-story-row:first-child { padding-top: 10px; }
.zht-story-row:last-child { border-bottom: none; }

.zht-story-row.is-reverse { flex-direction: row-reverse; }

.zht-story-index {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 800;
    color: #d8d3e4;
    align-self: flex-start;
    margin-top: 6px;
    min-width: 28px;
}

.zht-story-photo {
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    padding: 4px;
    background: var(--ztg-gradient, linear-gradient(135deg, #ff4fd8, #8a4bff, #5b6bff));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.zht-story-row:hover .zht-story-photo { transform: scale(1.05); }

.zht-story-photo img,
.zht-story-avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #f4f2f8;
}

.zht-story-avatar-icon {
    padding: 30px;
    box-sizing: border-box;
    color: #b9aed6;
}

.zht-story-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.zht-story-row.is-reverse .zht-story-info { text-align: right; align-items: flex-end; }

.zht-story-name {
    font-size: 21px;
    font-weight: 800;
    color: #1b1b24;
    margin-bottom: 6px;
}

.zht-story-role {
    font-size: 14px;
    line-height: 1.75;
    font-weight: 600;
    color: #6c6c7a;
    max-width: 560px;
    margin-bottom: 14px;
}

.zht-story-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.zht-story-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0eef7;
    color: #8a4bff;
}

.zht-story-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #8a4bff;
    transition: gap 0.25s ease, color 0.25s ease;
}

.zht-story-row:hover .zht-story-view {
    gap: 10px;
    color: #ff4fd8;
}

.zht-story-empty {
    text-align: center;
    color: #6c6c7a;
    font-size: 15px;
    padding: 60px 0;
}

.zht-story-cta {
    text-align: center;
    background: #14101c;
    padding: 70px 20px;
}

.zht-story-cta-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 26px;
}

@media (max-width: 720px) {
    .zht-story-row,
    .zht-story-row.is-reverse {
        flex-direction: column;
        text-align: center;
        gap: 18px;
        padding: 34px 12px;
    }
    .zht-story-row.is-reverse .zht-story-info,
    .zht-story-info { align-items: center; text-align: center; }
    .zht-story-index { display: none; }
    .zht-story-photo { width: 108px; height: 108px; }
    .zht-story-social { justify-content: center; }
}

/* ================================================================
   بخش اسلایدر محصولات با اسکرول (زیر بخش تیم)
   Scroll-driven product image slider
   ================================================================ */
.zht-pscroll {
    position: relative;
    background-color: #05030a;
    /* هر عکس به اندازه‌ی یک صفحه از ارتفاع اسکرول می‌گیرد تا تعویض تصاویر
       هماهنگ با سرعت اسکرول کاربر و نرم باشد */
    height: calc(var(--zht-pscroll-count, 1) * 100vh);
    min-height: 100vh;
}

.zht-pscroll::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 85% 10%, rgba(123, 47, 247, 0.14), transparent 60%),
                radial-gradient(ellipse 50% 45% at 10% 90%, rgba(241, 7, 163, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.zht-pscroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding: 90px 0 40px;
}

.zht-pscroll-inner {
    position: relative;
    z-index: 1;
    max-width: 1250px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: stretch;
    gap: 50px;
}

.zht-pscroll-text {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zht-pscroll-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff8fd0;
    margin-bottom: 14px;
}
.zht-pscroll-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb020, #ff7a1a);
    box-shadow: 0 0 12px rgba(255, 130, 30, 0.7);
}

.zht-pscroll-title {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 18px;
    color: #ffffff;
}
.zht-pscroll-title-accent {
    display: block;
    background: linear-gradient(90deg, #ffb020, #ff7ab8 55%, #8a4bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zht-pscroll-desc {
    font-size: 15.5px;
    line-height: 1.8;
    color: #cabfd6;
    margin: 0 0 34px;
    max-width: 420px;
}

.zht-pscroll-progress {
    width: 100%;
    max-width: 260px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 14px;
}
.zht-pscroll-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    transition: width 0.15s linear;
}

.zht-pscroll-counter {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #7a7288;
    font-variant-numeric: tabular-nums;
}
.zht-pscroll-counter-current {
    color: #ffffff;
    font-size: 18px;
}
.zht-pscroll-counter-sep { margin: 0 4px; }

.zht-pscroll-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 70% at 50% 40%, #1a1526, #0a0710 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    perspective: 2000px;
}

/* انیمیشن ورق‌خوردن (Page-flip) بین عکس‌ها */
.zht-pscroll-frame {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    z-index: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transform-origin: right center;
    pointer-events: none;
    transition: transform 0.85s cubic-bezier(0.42, 0.06, 0.18, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}
.zht-pscroll-frame.is-active {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 2;
    pointer-events: auto;
}
.zht-pscroll-frame.is-exit-forward {
    opacity: 0;
    transform: rotateY(-125deg);
    transform-origin: right center;
}
.zht-pscroll-frame.is-exit-back {
    opacity: 0;
    transform: rotateY(125deg);
    transform-origin: left center;
}
.zht-pscroll-frame.is-enter-forward {
    opacity: 0;
    transform: rotateY(-125deg);
    transform-origin: right center;
}
.zht-pscroll-frame.is-enter-back {
    opacity: 0;
    transform: rotateY(125deg);
    transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
    .zht-pscroll-frame {
        transition: opacity 0.4s ease;
        transform: none !important;
    }
}

.zht-pscroll-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5));
}

.zht-pscroll-dots {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zht-pscroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.3s ease, transform 0.3s ease, height 0.3s ease;
}
.zht-pscroll-dot.is-active {
    background: linear-gradient(180deg, #ffb020, #ff4fd8);
    height: 22px;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .zht-pscroll-sticky { padding: 76px 0 18px; }
    .zht-pscroll-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    .zht-pscroll-text {
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    .zht-pscroll-desc { margin-left: auto; margin-right: auto; }
    .zht-pscroll-progress { margin-left: auto; margin-right: auto; }
    .zht-pscroll-title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 10px; }
    .zht-pscroll-desc { margin-bottom: 18px; font-size: 14px; }
    /* روی موبایل/تبلت، عکس محصول بیشترین فضای ممکن را می‌گیرد تا کاملاً و
       بدون کوچک‌شدن دیده شود؛ متن‌ها فقط فضای لازم خودشان را می‌گیرند */
    .zht-pscroll-stage { flex: 1 1 auto; min-height: 0; order: 2; }
    .zht-pscroll-text { order: 1; }
}

@media (max-width: 560px) {
    .zht-pscroll-sticky { padding: 70px 0 14px; }
    .zht-pscroll-eyebrow { margin-bottom: 8px; }
    .zht-pscroll-title { margin-bottom: 8px; }
    .zht-pscroll-desc { display: none; }
    .zht-pscroll-counter { margin-top: 2px; }
    .zht-pscroll-stage { border-radius: 18px; padding: 0; }
    .zht-pscroll-frame { padding: 14px; }
    .zht-pscroll-dots { right: 10px; }
}

/* ================================================================
   دکمه گرد بازگشت به بالا با نمایش درصد پیشرفت اسکرول
   Circular back-to-top button with scroll progress ring
   ================================================================ */
.zht-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.zht-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.zht-back-to-top:hover .zht-btt-icon {
    transform: translateY(-2px);
}

.zht-btt-ring {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
}
.zht-btt-ring-bg,
.zht-btt-ring-progress {
    fill: #0c0812;
    stroke-width: 3;
}
.zht-btt-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}
.zht-btt-ring-progress {
    stroke: #f107a3;
    stroke: url(#zht-btt-gradient);
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.1s linear;
}

.zht-btt-icon {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 24px;
    transition: transform 0.25s ease;
}

@media (max-width: 560px) {
    .zht-back-to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
    .zht-btt-ring { width: 48px; height: 48px; }
    .zht-btt-icon { font-size: 20px; }
}
