/* ============================================
   Dr. Faraji - Hero Section (Complete v9)
   ============================================ */

.elementor-widget-dfbg_hero,
.elementor-widget-dfbg_hero > .elementor-widget-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   HERO ROOT
   ============================================ */
.dfbg-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
    color: #ffffff;
    box-sizing: border-box;
}

.dfbg-hero *,
.dfbg-hero *::before,
.dfbg-hero *::after {
    box-sizing: border-box;
}

/* ============================================
   FUNNEL BACKGROUND
   ============================================ */
.dfbg-funnel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
            radial-gradient(ellipse at 25% 50%, rgba(10, 31, 68, 0.4) 0%, transparent 55%),
            radial-gradient(ellipse at 50% 100%, rgba(255, 106, 26, 0.1) 0%, transparent 50%),
            linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.dfbg-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dfbg-hero__canvas canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.dfbg-funnel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
            to bottom,
            rgba(5, 5, 5, 0.3) 0%,
            transparent 40%,
            rgba(5, 5, 5, 0.7) 100%
    );
    pointer-events: none;
}

/* ============================================
   FULL BACKGROUND IMAGE
   ============================================ */
.dfbg-full-image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    will-change: background-position;
    transition: background-position 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dfbg-full-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            radial-gradient(ellipse at 50% 0%, rgba(5, 5, 5, 0.5) 0%, transparent 55%),
            radial-gradient(ellipse at 50% 100%, rgba(5, 5, 5, 0.6) 0%, transparent 50%),
            linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.25) 50%, rgba(5, 5, 5, 0.85) 100%);
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================
   CONTAINER - FLEX
   ============================================ */
.dfbg-hero .dfbg-hero__container {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 1rem 3rem !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4rem !important;
    align-items: center !important;
    justify-content: center !important;
}

.dfbg-hero .dfbg-hero__content {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    max-width: 600px !important;
    text-align: right !important;
    order: 1 !important;
}

.dfbg-hero .dfbg-hero__media {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 2 !important;
}

/* ---- Layout: قیف راست - متن چپ ---- */
.dfbg-hero--funnel-right .dfbg-hero__content {
    order: 2 !important;
}
.dfbg-hero--funnel-right .dfbg-hero__media {
    order: 1 !important;
}

/* ---- Layout: تک‌ستونه ---- */
.dfbg-hero--funnel-center .dfbg-hero__container {
    max-width: 950px !important;
    flex-direction: column !important;
}
.dfbg-hero--funnel-center .dfbg-hero__content {
    order: 1 !important;
    text-align: center !important;
    margin: 0 auto !important;
}
.dfbg-hero--funnel-center .dfbg-hero__media {
    display: none !important;
}

/* ============================================
   BADGE
   ============================================ */
.dfbg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-bottom: 1.25rem;
    animation: dfbg-badge-in 0.8s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

@keyframes dfbg-badge-in {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dfbg-hero__badge-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #FF6A1A;
    flex-shrink: 0;
}

.dfbg-hero__badge-dot::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.6;
    animation: dfbg-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes dfbg-ping {
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================
   HEADLINE
   ============================================ */
.dfbg-hero__headline {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: #ffffff;
}

.dfbg-hero__headline .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}

.dfbg-hero__headline .line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: dfbg-word-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dfbg-hero__headline .line:nth-child(1) > span { animation-delay: 0.3s; }
.dfbg-hero__headline .line:nth-child(2) > span { animation-delay: 0.5s; }

@keyframes dfbg-word-up {
    to { transform: translateY(0); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--grad-1, #ffffff), var(--grad-2, #FF8A3D), var(--grad-3, #FF6A1A));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.dfbg-hero__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #a1a1aa;
    margin: 0 0 2rem;
    opacity: 0;
    transform: translateY(15px);
    animation: dfbg-fade-up 0.8s ease-out 1s forwards;
}

.dfbg-hero__desc strong {
    color: #ffffff;
    font-weight: 700;
}

@keyframes dfbg-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CTAs
   ============================================ */
.dfbg-hero__ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(15px);
    animation: dfbg-fade-up 0.8s ease-out 1.2s forwards;
}

.dfbg-hero--align-center .dfbg-hero__ctas {
    justify-content: center;
}

.dfbg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.dfbg-btn__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.dfbg-btn > span {
    position: relative;
    z-index: 2;
}

.dfbg-btn--primary {
    background-color: #FF6A1A;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 106, 26, 0.4);
}

.dfbg-btn--primary:hover {
    background-color: #FF8A3D;
    color: #ffffff;
    box-shadow: 0 0 50px rgba(255, 106, 26, 0.6);
    transform: translateY(-2px);
}

.dfbg-btn--glow {
    animation: dfbg-pulse-glow 3s ease-in-out infinite;
}

@keyframes dfbg-pulse-glow {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 106, 26, 0.35); }
    50%      { box-shadow: 0 0 45px rgba(255, 106, 26, 0.55); }
}

.dfbg-btn--glass {
    background-color: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dfbg-btn--glass:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FF6A1A;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   STATS
   ============================================ */
.dfbg-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 500px;
    margin-right: 0;
    margin-left: auto;
    opacity: 0;
    transform: translateY(15px);
    animation: dfbg-fade-up 0.8s ease-out 1.4s forwards;
}

.dfbg-hero--align-center .dfbg-hero__stats {
    margin-left: auto;
    margin-right: auto;
}

.dfbg-hero__stat {
    background-color: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 0.85rem 0.5rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dfbg-hero__stat::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
            400px circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 106, 26, 0.15),
            transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.dfbg-hero__stat:hover::before {
    opacity: 1;
}

.dfbg-hero__stat:hover {
    border-color: rgba(255, 106, 26, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 106, 26, 0.15);
}

.dfbg-hero__stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FF6A1A;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.dfbg-hero__stat-label {
    font-size: 0.72rem;
    color: #a1a1aa;
    margin-top: 0.35rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   SCROLL INDICATOR - 3 Hexagons
   ============================================ */
.dfbg-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    z-index: 10;
    animation: dfbg-fade-up 0.8s ease-out 1.8s forwards;
    pointer-events: none;
}

.dfbg-hero__scroll-text {
    font-size: 0.7rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    padding-right: 0.3em;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ظرف سه شش‌ضلعی */
.dfbg-hero__scroll-hex {
    position: relative;
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* هر شش‌ضلعی */
.dfbg-hero__scroll-hex-item {
    position: absolute;
    width: 26px;
    height: 30px;
    background: transparent;
    border: 2px solid #FF6A1A;
    /* شش‌ضلعی با clip-path */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* به جای clip-path، از border استفاده می‌کنیم که با ::before شبیه‌سازی بشه */
    background: transparent;
    border: none;
    opacity: 0;
    animation: dfbg-hex-stack 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 106, 26, 0.6));
}

/* شش‌ضلعی به صورت SVG با mask */
.dfbg-hero__scroll-hex-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #FF6A1A 0%, #FF8A3D 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* فقط خط، پس با border داخلی */
}

/* روش دیگه: با border و mask */
.dfbg-hero__scroll-hex-item {
    /* استفاده از SVG به عنوان mask برای خط شش‌ضلعی */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M13 1 L25 8 L25 22 L13 29 L1 22 L1 8 Z' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M13 1 L25 8 L25 22 L13 29 L1 22 L1 8 Z' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background: linear-gradient(180deg, #FF6A1A 0%, #FF8A3D 100%);
    border: none;
}

/* انیمیشن سه شش‌ضلعی با تاخیر */
.dfbg-hero__scroll-hex-item:nth-child(1) {
    animation-delay: 0s;
    /* بالاترین موقعیت */
    transform: translateY(-8px);
}
.dfbg-hero__scroll-hex-item:nth-child(2) {
    animation-delay: 0.3s;
    /* موقعیت وسط */
    transform: translateY(0);
}
.dfbg-hero__scroll-hex-item:nth-child(3) {
    animation-delay: 0.6s;
    /* پایین‌ترین موقعیت */
    transform: translateY(8px);
}

@keyframes dfbg-hex-stack {
    0%, 100% {
        opacity: 0;
    }
    30%, 60% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
}
/* ============================================
   COLUMN IMAGE
   ============================================ */
.dfbg-image-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.4), rgba(255, 106, 26, 0.1));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.5s ease;
}

.dfbg-image-wrap:hover {
    box-shadow:
            0 0 80px rgba(255, 106, 26, 0.25),
            0 30px 80px rgba(0, 0, 0, 0.7);
}

.dfbg-image-wrap.has-glow {
    box-shadow:
            0 0 60px rgba(255, 106, 26, 0.2),
            0 20px 60px rgba(0, 0, 0, 0.5);
}

.dfbg-image-wrap.has-glow::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 106, 26, 0.5), rgba(10, 31, 68, 0.3), rgba(255, 106, 26, 0.4));
    z-index: 0;
    filter: blur(24px);
    opacity: 0.7;
    pointer-events: none;
}

.dfbg-image-el {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.dfbg-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.15) 0%, transparent 40%, rgba(5, 5, 5, 0.4) 100%);
    pointer-events: none;
    opacity: 0.5;
}
/* ============================================
   MOUSE SPOTLIGHT & TRAIL (Global - Hero + About)
   ============================================ */
.dfbg-hero,
.dfbg-about {
    position: relative;
    overflow: hidden;
}

.dfbg-mouse-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(
            circle,
            rgba(255, 106, 26, 0.18) 0%,
            rgba(255, 106, 26, 0.08) 30%,
            transparent 70%
    );
    filter: blur(30px);
    transition: opacity 0.4s ease;
    will-change: transform;
    mix-blend-mode: screen;
}

.dfbg-hero:hover .dfbg-mouse-spotlight,
.dfbg-about:hover .dfbg-mouse-spotlight,
.dfbg-process:hover .dfbg-mouse-spotlight {
    opacity: 1;
}
.dfbg-mouse-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(
            circle,
            rgba(255, 138, 61, 0.9) 0%,
            rgba(255, 106, 26, 0.5) 40%,
            transparent 70%
    );
    filter: blur(2px);
    transition: opacity 0.3s ease;
    will-change: transform;
}

.dfbg-hero:hover .dfbg-mouse-cursor,
.dfbg-about:hover .dfbg-mouse-cursor,
.dfbg-process:hover .dfbg-mouse-cursor {
    opacity: 1;
}
.dfbg-mouse-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: rgba(255, 106, 26, 0.6);
    filter: blur(4px);
    will-change: transform;
    transition: opacity 0.6s ease;
}

.dfbg-hero:hover .dfbg-mouse-trail,
.dfbg-about:hover .dfbg-mouse-trail,
.dfbg-process:hover .dfbg-mouse-trail {
    opacity: 0.7;
}
/* ============================================
   GLOW داخلی کارت‌ها / دکمه‌ها / بج
   ============================================ */
.dfbg-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
            300px circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 255, 255, 0.25),
            transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.dfbg-btn:hover::before {
    opacity: 1;
}

.dfbg-hero__badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
            250px circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 106, 26, 0.25),
            transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.dfbg-hero__badge:hover::before {
    opacity: 1;
}

.dfbg-hero__badge > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .dfbg-hero .dfbg-hero__container {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        padding: 4rem 1.5rem 3rem !important;
        gap: 2.5rem !important;
    }
    .dfbg-hero .dfbg-hero__content,
    .dfbg-hero .dfbg-hero__media {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: initial !important;
    }
    .dfbg-hero .dfbg-hero__content {
        text-align: center !important;
        margin: 0 auto !important;
    }
    .dfbg-hero .dfbg-hero__media {
        margin-top: 1rem !important;
        justify-content: center !important;
    }
    .dfbg-hero__ctas {
        justify-content: center !important;
    }
    .dfbg-hero__stats {
        margin: 0 auto !important;
    }
    .dfbg-image-wrap {
        height: auto !important;
        aspect-ratio: 4/3 !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 600px) {
    .dfbg-hero__stats {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100% !important;
        gap: 0.5rem !important;
    }
    .dfbg-hero__stat {
        padding: 0.6rem 0.3rem !important;
    }
    .dfbg-hero__stat-value {
        font-size: 1.1rem !important;
    }
    .dfbg-hero__stat-label {
        font-size: 0.62rem !important;
    }
    .dfbg-hero__ctas {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .dfbg-btn {
        width: 100% !important;
    }
}
/* ============================================
   ABOUT SECTION
   ============================================ */
.dfbg-about {
    position: relative;
    width: 100%;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
    color: #ffffff;
    box-sizing: border-box;
}

.dfbg-about *,
.dfbg-about *::before,
.dfbg-about *::after {
    box-sizing: border-box;
}

.dfbg-about__container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dfbg-about__grid {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
}

/* ---- Layout: عکس چپ - متن راست ---- */
.dfbg-about--image-left .dfbg-about__media {
    order: 1;
}
.dfbg-about--image-left .dfbg-about__content {
    order: 2;
}

/* ---- Layout: عکس راست - متن چپ ---- */
.dfbg-about--image-right .dfbg-about__media {
    order: 2;
}
.dfbg-about--image-right .dfbg-about__content {
    order: 1;
}

/* ============================================
   MEDIA SIDE
   ============================================ */
.dfbg-about__media {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfbg-about__content {
    flex: 1 1 auto;
    min-width: 0;
}

.dfbg-about__media-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 550px;
}

.dfbg-about__media-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

/* درخشش پشت عکس */
.dfbg-about__media-wrap.has-glow::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(255, 106, 26, 0.2) 0%, rgba(10, 31, 68, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.dfbg-about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   CONTENT SIDE
   ============================================ */
.dfbg-about__content {
    position: relative;
}

/* ---- Badge ---- */
.dfbg-about__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dfbg-about__badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FF6A1A;
    flex-shrink: 0;
}

.dfbg-about__badge-text {
    font-weight: 500;
}

/* ---- Headline ---- */
.dfbg-about__headline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: #ffffff;
}

.dfbg-about__headline-line {
    display: block;
    margin-bottom: 0.15em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--grad-1, #ffffff), var(--grad-2, #FF8A3D), var(--grad-3, #FF6A1A));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Description ---- */
.dfbg-about__desc {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #a1a1aa;
    margin: 0 0 2rem;
}

.dfbg-about__desc strong {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================
   TIMELINE
   ============================================ */
.dfbg-about__timeline-wrap {
    position: relative;
    padding-right: 1.5rem;
}

.dfbg-about__timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 6px;
    width: 1px;
    background: linear-gradient(to bottom, #FF6A1A 0%, rgba(10, 31, 68, 0.5) 70%, transparent 100%);
}

.dfbg-about__timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.dfbg-about__timeline-item {
    position: relative;
    padding-right: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.dfbg-about__timeline-item:hover {
    transform: translateX(-4px);
}

.dfbg-about__timeline-item::before {
    content: "";
    position: absolute;
    right: -1.5rem;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FF6A1A;
    box-shadow: 0 0 15px rgba(255, 106, 26, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.dfbg-about__timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(255, 106, 26, 0.9);
}

/* عکس تایم‌لاین */
.dfbg-about__timeline-photo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.dfbg-about__timeline-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(255, 106, 26, 0.3);
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dfbg-about__timeline-item:hover .dfbg-about__timeline-photo {
    transform: scale(1.05);
    border-color: #FF6A1A;
    box-shadow: 0 0 30px rgba(255, 106, 26, 0.4);
}

/* محتوای تایم‌لاین */
.dfbg-about__timeline-content {
    flex: 1;
    min-width: 0;
}

.dfbg-about__timeline-year {
    font-size: 0.7rem;
    color: #FF6A1A;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: 0.05em;
}

.dfbg-about__timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.dfbg-about__timeline-desc {
    font-size: 0.78rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .dfbg-about__grid {
        flex-direction: column;
        gap: 2.5rem;
    }
    .dfbg-about__media,
    .dfbg-about__content {
        width: 100% !important;
        flex: 1 1 auto !important;
        order: initial !important;
    }
    .dfbg-about__media-wrap {
        max-width: 400px !important;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
    }
    .dfbg-about__content {
        text-align: center;
    }
    .dfbg-about__badge {
        margin-left: auto;
        margin-right: auto;
    }
    .dfbg-about__timeline-wrap {
        padding-right: 0;
        padding-left: 1.5rem;
        text-align: right;
    }
    .dfbg-about__timeline {
        right: auto;
        left: 6px;
    }
    .dfbg-about__timeline-item {
        padding-right: 0;
        padding-left: 1.75rem;
    }
    .dfbg-about__timeline-item::before {
        right: auto;
        left: -1.5rem;
    }
}

@media (max-width: 600px) {
    .dfbg-about__headline {
        font-size: 1.5rem;
    }
    .dfbg-about__desc {
        font-size: 0.88rem;
    }
    .dfbg-about__media-wrap {
        max-width: 320px !important;
    }
    .dfbg-about__timeline-item {
        gap: 0.75rem;
    }
    .dfbg-about__timeline-photo {
        width: 60px;
        height: 60px;
    }
}
/* ============================================
   TIMELINE ANIMATIONS
   ============================================ */

/* خط عمودی - انیمیشن رشد از بالا به پایین */
.dfbg-about__timeline {
    transform-origin: top center;
    animation: dfbg-timeline-grow 2.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-play-state: paused;
}

.dfbg-about.is-visible .dfbg-about__timeline {
    animation-play-state: running;
}

@keyframes dfbg-timeline-grow {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* آیتم تایم‌لاین - از بالا یکی‌یکی */
.dfbg-about__timeline-item {
    opacity: 0;
    transform: translateY(-30px);
    animation: dfbg-timeline-item-in 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-play-state: paused;
}

.dfbg-about.is-visible .dfbg-about__timeline-item {
    animation-play-state: running;
}

/* تأخیر برای هر آیتم */
.dfbg-about__timeline-item:nth-child(1) { animation-delay: 0.6s; }
.dfbg-about__timeline-item:nth-child(2) { animation-delay: 1s; }
.dfbg-about__timeline-item:nth-child(3) { animation-delay: 1.4s; }
.dfbg-about__timeline-item:nth-child(4) { animation-delay: 1.8s; }
.dfbg-about__timeline-item:nth-child(5) { animation-delay: 2.2s; }
.dfbg-about__timeline-item:nth-child(6) { animation-delay: 2.6s; }
.dfbg-about__timeline-item:nth-child(7) { animation-delay: 3s; }
.dfbg-about__timeline-item:nth-child(8) { animation-delay: 3.4s; }
.dfbg-about__timeline-item:nth-child(9) { animation-delay: 3.8s; }
.dfbg-about__timeline-item:nth-child(10) { animation-delay: 4.2s; }

@keyframes dfbg-timeline-item-in {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نقطه - انیمیشن pulse */
.dfbg-about__timeline-item::before {
    opacity: 0;
    animation: dfbg-timeline-dot-in 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-play-state: paused;
}

.dfbg-about.is-visible .dfbg-about__timeline-item::before {
    animation-play-state: running;
}

.dfbg-about__timeline-item:nth-child(1)::before { animation-delay: 0.6s; }
.dfbg-about__timeline-item:nth-child(2)::before { animation-delay: 1s; }
.dfbg-about__timeline-item:nth-child(3)::before { animation-delay: 1.4s; }
.dfbg-about__timeline-item:nth-child(4)::before { animation-delay: 1.8s; }
.dfbg-about__timeline-item:nth-child(5)::before { animation-delay: 2.2s; }
.dfbg-about__timeline-item:nth-child(6)::before { animation-delay: 2.6s; }
.dfbg-about__timeline-item:nth-child(7)::before { animation-delay: 3s; }
.dfbg-about__timeline-item:nth-child(8)::before { animation-delay: 3.4s; }
.dfbg-about__timeline-item:nth-child(9)::before { animation-delay: 3.8s; }
.dfbg-about__timeline-item:nth-child(10)::before { animation-delay: 4.2s; }

@keyframes dfbg-timeline-dot-in {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* عکس تایم‌لاین */
.dfbg-about__timeline-photo {
    opacity: 0;
    transform: scale(0.8);
    animation: dfbg-timeline-photo-in 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-play-state: paused;
}

.dfbg-about.is-visible .dfbg-about__timeline-photo {
    animation-play-state: running;
}

.dfbg-about__timeline-item:nth-child(1) .dfbg-about__timeline-photo { animation-delay: 0.75s; }
.dfbg-about__timeline-item:nth-child(2) .dfbg-about__timeline-photo { animation-delay: 1.15s; }
.dfbg-about__timeline-item:nth-child(3) .dfbg-about__timeline-photo { animation-delay: 1.55s; }
.dfbg-about__timeline-item:nth-child(4) .dfbg-about__timeline-photo { animation-delay: 1.95s; }
.dfbg-about__timeline-item:nth-child(5) .dfbg-about__timeline-photo { animation-delay: 2.35s; }
.dfbg-about__timeline-item:nth-child(6) .dfbg-about__timeline-photo { animation-delay: 2.75s; }
.dfbg-about__timeline-item:nth-child(7) .dfbg-about__timeline-photo { animation-delay: 3.15s; }
.dfbg-about__timeline-item:nth-child(8) .dfbg-about__timeline-photo { animation-delay: 3.55s; }

@keyframes dfbg-timeline-photo-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* متن (سال، عنوان، توضیحات) */
.dfbg-about__timeline-content {
    opacity: 0;
    transform: translateX(15px);
    animation: dfbg-timeline-content-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-play-state: paused;
}

.dfbg-about.is-visible .dfbg-about__timeline-content {
    animation-play-state: running;
}

.dfbg-about__timeline-item:nth-child(1) .dfbg-about__timeline-content { animation-delay: 0.8s; }
.dfbg-about__timeline-item:nth-child(2) .dfbg-about__timeline-content { animation-delay: 1.2s; }
.dfbg-about__timeline-item:nth-child(3) .dfbg-about__timeline-content { animation-delay: 1.6s; }
.dfbg-about__timeline-item:nth-child(4) .dfbg-about__timeline-content { animation-delay: 2s; }
.dfbg-about__timeline-item:nth-child(5) .dfbg-about__timeline-content { animation-delay: 2.4s; }
.dfbg-about__timeline-item:nth-child(6) .dfbg-about__timeline-content { animation-delay: 2.8s; }
.dfbg-about__timeline-item:nth-child(7) .dfbg-about__timeline-content { animation-delay: 3.2s; }
.dfbg-about__timeline-item:nth-child(8) .dfbg-about__timeline-content { animation-delay: 3.6s; }

@keyframes dfbg-timeline-content-in {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* در RTL، حرکت از راست به چپ */
.dfbg-about--image-right .dfbg-about__timeline-content,
.dfbg-about--image-left .dfbg-about__timeline-content {
    transform: translateX(-15px);
}

.dfbg-about.is-visible .dfbg-about__timeline-content {
    transform: translateX(0);
}

/* احترام به prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .dfbg-about__timeline,
    .dfbg-about__timeline-item,
    .dfbg-about__timeline-item::before,
    .dfbg-about__timeline-photo,
    .dfbg-about__timeline-content {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   ABOUT - MOUSE PARALLAX (Transitions)
   ============================================ */

/* آماده‌سازی برای 3D */
.dfbg-about__media-wrap {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.dfbg-about__headline,
.dfbg-about__desc,
.dfbg-about__badge,
.dfbg-about__timeline-item {
    will-change: transform;
}

/* در حالت reduce motion، پارالاکس غیرفعال */
@media (prefers-reduced-motion: reduce) {
    .dfbg-about__media-wrap,
    .dfbg-about__headline,
    .dfbg-about__desc,
    .dfbg-about__badge,
    .dfbg-about__timeline-item {
        transform: none !important;
    }
}
/* ============================================
   PROCESS SECTION
   ============================================ */
.dfbg-process {
    position: relative;
    width: 100%;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
    color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.dfbg-process *,
.dfbg-process *::before,
.dfbg-process *::after {
    box-sizing: border-box;
}

.dfbg-process__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   HEADER
   ============================================ */
.dfbg-process__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.dfbg-process__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dfbg-process__badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FF6A1A;
    flex-shrink: 0;
}

.dfbg-process__badge-text {
    font-weight: 500;
}

.dfbg-process__headline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #ffffff;
}

.dfbg-process__headline-line {
    display: block;
    margin-bottom: 0.15em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--grad-1, #ffffff), var(--grad-2, #FF8A3D), var(--grad-3, #FF6A1A));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.dfbg-process__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #a1a1aa;
    margin: 0;
}

/* ============================================
   GRID
   ============================================ */
.dfbg-process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ============================================
   CARD
   ============================================ */
.dfbg-process__card {
    position: relative;
    background-color: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);

    /* انیمیشن ورود - ولی توی ادیتور المنتور غیرفعال */
    opacity: 1;
    transform: translateY(0);
}

/* انیمیشن فقط در فرانت */
.dfbg-process:not(.is-editor) .dfbg-process__card {
    opacity: 0;
    transform: translateY(30px);
}

.dfbg-process.is-visible .dfbg-process__card {
    animation: dfbg-process-card-in 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: calc(var(--index) * 0.12s + 0.2s);
}

@keyframes dfbg-process-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* توی ادیتور المنتور - همه چیز نمایش داده بشه */
.elementor-editor-active .dfbg-process .dfbg-process__card,
.elementor-edit-mode .dfbg-process .dfbg-process__card,
.dfbg-process.is-editor .dfbg-process__card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

/* Glow داخلی روی hover */
.dfbg-process__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
            400px circle at 50% 50%,
            rgba(255, 106, 26, 0.12),
            transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.dfbg-process__card:hover::before {
    opacity: 1;
}

.dfbg-process__card:hover {
    border-color: rgba(255, 106, 26, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 106, 26, 0.15);
}

/* ============================================
   CARD HEADER
   ============================================ */
.dfbg-process__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.dfbg-process__num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 106, 26, 0.1);
    border: 1px solid rgba(255, 106, 26, 0.3);
    color: #FF6A1A;
    font-size: 0.85rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.dfbg-process__card:hover .dfbg-process__num {
    background-color: #FF6A1A;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.5);
}

.dfbg-process__card-icon {
    width: 20px;
    height: 20px;
    color: #52525b;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.dfbg-process__card:hover .dfbg-process__card-icon {
    color: #FF6A1A;
    transform: rotate(45deg);
}

/* ============================================
   CARD CONTENT
   ============================================ */
.dfbg-process__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.dfbg-process__card-desc {
    font-size: 0.8rem;
    line-height: 1.75;
    color: #a1a1aa;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ============================================
   GUARANTEE BADGE
   ============================================ */
.dfbg-process__guarantee {
    margin: 2.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 12px 20px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 520px;

    /* انیمیشن ورود - توی ادیتور غیرفعال */
    opacity: 1;
    transform: translateY(0);
}

.dfbg-process:not(.is-editor) .dfbg-process__guarantee {
    opacity: 0;
    transform: translateY(20px);
}

.dfbg-process.is-visible .dfbg-process__guarantee {
    animation: dfbg-process-guarantee-in 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.9s;
}

@keyframes dfbg-process-guarantee-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elementor-editor-active .dfbg-process .dfbg-process__guarantee,
.elementor-edit-mode .dfbg-process .dfbg-process__guarantee,
.dfbg-process.is-editor .dfbg-process__guarantee {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.dfbg-process__guarantee-icon {
    width: 20px;
    height: 20px;
    color: #FF6A1A;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 106, 26, 0.5));
}

.dfbg-process__guarantee-text {
    font-size: 0.78rem;
    color: #a1a1aa;
    margin: 0;
    line-height: 1.6;
}

.dfbg-process__guarantee-bold {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .dfbg-process__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dfbg-process {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
    .dfbg-process__header {
        margin-bottom: 2.5rem;
    }
    .dfbg-process__headline {
        font-size: 1.5rem;
    }
    .dfbg-process__desc {
        font-size: 0.88rem;
    }
    .dfbg-process__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .dfbg-process__card {
        padding: 20px;
    }
    .dfbg-process__guarantee {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
        border-radius: 20px;
    }
    .dfbg-process__guarantee-text {
        font-size: 0.75rem;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .dfbg-process__card,
    .dfbg-process__guarantee {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
/* ============================================
   SERVICES — SCROLL JOURNEY (One Card at a Time)
   ============================================ */

.dfbg-services {
    position: relative;
    width: 100%;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
    color: #ffffff;
    box-sizing: border-box;
    background-color: #050505;
    /* ارتفاع کل بر اساس تعداد کارت × ضریب سرعت */
    height: var(--section-height-vh, 600vh);
}

.dfbg-services *,
.dfbg-services *::before,
.dfbg-services *::after {
    box-sizing: border-box;
}

/* ============================================
   BACKGROUND گرادیان
   ============================================ */
.dfbg-services__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background:
            radial-gradient(ellipse at 20% 30%, rgba(10, 31, 68, 0.3) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 70%, rgba(255, 106, 26, 0.06) 0%, transparent 50%);
}

.dfbg-services.is-in-view .dfbg-services__bg {
    opacity: 1;
}

/* ============================================
   HEADER (معمولی، بالای sticky)
   ============================================ */
.dfbg-services__header-wrap {
    position: relative;
    z-index: 5;
    padding: 100px 24px 60px;
    text-align: center;
}

.dfbg-services__header {
    max-width: 700px;
    margin: 0 auto;
}

.dfbg-services__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dfbg-services__badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FF6A1A;
    flex-shrink: 0;
    position: relative;
}

.dfbg-services__badge-dot::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: dfbg-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dfbg-services__badge-text {
    font-weight: 500;
}

.dfbg-services__headline {
    font-size: clamp(1.6rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #ffffff;
}

.dfbg-services__headline-line {
    display: block;
    margin-bottom: 0.15em;
}

.dfbg-services__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #a1a1aa;
    margin: 0;
}

/* ============================================
   STICKY AREA (ناحیه چسبنده)
   ============================================ */
.dfbg-services__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 3;
}

/* ============================================
   STAGE (صحنه کارت‌ها)
   ============================================ */
.dfbg-services__stage {
    position: relative;
    width: 100%;
    max-width: 820px;
    height: 62vh;
    min-height: 380px;
    margin: 0 auto;
    padding: 0 24px;
    /* فاصله از نوار پایین که کارت روش نیفته */
    margin-bottom: 100px;
}

/* ============================================
   CARD
   ============================================ */
.dfbg-services__card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px) scale(0.94);
    transition:
            opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
            transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
            border-color 0.5s ease,
            box-shadow 0.6s ease;
    pointer-events: none;
    will-change: transform, opacity;
}

/* کارت فعال */
.dfbg-services__card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 3;
    border-color: rgba(255, 106, 26, 0.45);
    box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.6),
            0 0 100px rgba(255, 106, 26, 0.15);
}

/* کارت قبلی - رفته بالا و محو شده */
.dfbg-services__card.is-past {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
    z-index: 1;
}

/* کارت بعدی - پایین منتظر */
.dfbg-services__card.is-next {
    opacity: 0;
    transform: translateY(60px) scale(0.94);
    z-index: 2;
}

/* Glow داخلی روی hover (فقط کارت فعال) */
.dfbg-services__card.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
            600px circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 106, 26, 0.1),
            transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.dfbg-services__card.is-active:hover::before {
    opacity: 1;
}

/* ============================================
   BACKGROUND NUMBER (شماره بزرگ پشت کارت)
   ============================================ */
.dfbg-services__bg-num {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: clamp(10rem, 22vw, 20rem);
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    transition: color 0.6s ease;
    font-feature-settings: "ss01";
}

.dfbg-services__card.is-active .dfbg-services__bg-num {
    color: rgba(255, 106, 26, 0.05);
}

/* ============================================
   CARD INNER
   ============================================ */
.dfbg-services__card-inner {
    position: relative;
    z-index: 2;
    padding: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   CARD HEADER
   ============================================ */
.dfbg-services__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}

.dfbg-services__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 1px dashed rgba(255, 106, 26, 0.3);
    color: #FF6A1A;
    font-size: 0.9rem;
    font-weight: 900;
    transition: all 0.5s ease;
    background: rgba(255, 106, 26, 0.05);
    font-feature-settings: "ss01";
}

.dfbg-services__card.is-active .dfbg-services__num {
    border-style: solid;
    border-color: #FF6A1A;
    background: rgba(255, 106, 26, 0.15);
    box-shadow: 0 0 24px rgba(255, 106, 26, 0.4);
}

.dfbg-services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #FF6A1A;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.dfbg-services__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dfbg-services__card.is-active .dfbg-services__icon {
    transform: scale(1.1);
}

/* ============================================
   CARD CONTENT
   ============================================ */
.dfbg-services__card-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    flex-shrink: 0;
}

.dfbg-services__card-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: #a1a1aa;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

/* ============================================
   TAGS
   ============================================ */
.dfbg-services__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}

.dfbg-services__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #a1a1aa;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dfbg-services__card.is-active .dfbg-services__tag {
    border-color: rgba(255, 106, 26, 0.2);
    color: #d4d4d8;
}

/* ============================================
   CARD CTA
   ============================================ */
.dfbg-services__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF6A1A;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    align-self: flex-start;
    flex-shrink: 0;
}

.dfbg-services__card-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.dfbg-services__card-cta:hover {
    gap: 0.85rem;
    color: #FF8A3D;
}

.dfbg-services__card-cta:hover svg {
    transform: translateX(-3px);
}

/* ============================================
   INDICATORS (نشانگر پله‌ای — سمت چپ)
   ============================================ */
.dfbg-services__indicators {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

.dfbg-services__indicator {
    width: 6px;
    height: 4px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.dfbg-services__indicator:hover {
    border-color: rgba(255, 106, 26, 0.6);
    transform: scale(1.3);
}

.dfbg-services__indicator.is-active {
    background: #FF6A1A;
    border-color: #FF6A1A;
    box-shadow: 0 0 16px rgba(255, 106, 26, 0.8);
    transform: scale(1.4);
}

.dfbg-services__indicator.is-active::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 106, 26, 0.5);
    animation: dfbg-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ============================================
   BOTTOM BAR (نوار پایین ثابت — progress + CTA)
   ============================================ */
.dfbg-services__bottom-bar {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
    width: auto;
    max-width: calc(100% - 80px);
    pointer-events: none;
}

.dfbg-services__bottom-bar > * {
    pointer-events: auto;
}

/* ============================================
   BOTTOM PROGRESS
   ============================================ */
.dfbg-services__bottom-progress {
    position: relative;
    width: 220px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-radius: 9999px;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.dfbg-services__bottom-progress-bar {
    flex: 1;
    height: 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dfbg-services__bottom-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(to left, #FF6A1A, #FF8A3D);
    border-radius: 9999px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dfbg-services__bottom-progress-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a1a1aa;
    white-space: nowrap;
    font-feature-settings: "ss01";
}

.dfbg-services__bottom-progress-current {
    color: #FF6A1A;
}

.dfbg-services__bottom-progress-sep {
    opacity: 0.4;
}

/* ============================================
   BOTTOM CTA (کنار progress، ثابت پایین)
   ============================================ */
.dfbg-services__cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 6px 6px 6px 20px;
    border-radius: 100px;
    background-color: rgba(15, 15, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.dfbg-services__cta-text {
    font-size: 0.82rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   BUTTON SMALL (برای CTA پایین)
   ============================================ */
.dfbg-btn--sm {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.8rem !important;
}

.dfbg-btn--sm .dfbg-btn__icon {
    width: 0.85rem;
    height: 0.85rem;
}

/* ============================================
   EDITOR MODE — همه کارت‌ها نمایش داده بشن
   ============================================ */
.elementor-editor-active .dfbg-services,
.elementor-edit-mode .dfbg-services {
    height: auto !important;
}

.elementor-editor-active .dfbg-services__sticky,
.elementor-edit-mode .dfbg-services__sticky {
    position: relative !important;
    height: auto !important;
    padding: 40px 0;
}

.elementor-editor-active .dfbg-services__stage,
.elementor-edit-mode .dfbg-services__stage {
    position: relative !important;
    height: auto !important;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 0 !important;
}

.elementor-editor-active .dfbg-services__card,
.elementor-edit-mode .dfbg-services__card {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    inset: auto !important;
    height: auto !important;
    min-height: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.elementor-editor-active .dfbg-services__indicators,
.elementor-edit-mode .dfbg-services__indicators,
.elementor-editor-active .dfbg-services__bottom-bar,
.elementor-edit-mode .dfbg-services__bottom-bar {
    display: none !important;
}

.elementor-editor-active .dfbg-services__bg,
.elementor-edit-mode .dfbg-services__bg {
    position: absolute !important;
    opacity: 1 !important;
}

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
    .dfbg-services__header-wrap {
        padding: 80px 20px 40px;
    }

    .dfbg-services__indicators {
        left: 16px;
        gap: 10px;
    }

    .dfbg-services__indicator {
        width: 8px;
        height: 8px;
    }

    .dfbg-services__stage {
        height: 65vh;
        max-width: 100%;
        padding: 0 20px;
        margin-bottom: 130px;
    }

    .dfbg-services__card-inner {
        padding: 36px 32px;
    }

    .dfbg-services__card-title {
        font-size: 1.5rem;
    }

    .dfbg-services__card-desc {
        font-size: 0.92rem;
    }

    .dfbg-services__bg-num {
        font-size: 12rem;
        top: -30px;
        left: -15px;
    }

    /* نوار پایین ستونی */
    .dfbg-services__bottom-bar {
        flex-direction: column-reverse;
        gap: 10px;
        bottom: 24px;
        width: calc(100% - 40px);
        max-width: 420px;
    }

    .dfbg-services__bottom-progress {
        width: 100%;
    }

    .dfbg-services__cta {
        width: 100%;
        justify-content: space-between;
        padding: 6px 6px 6px 16px;
    }

    .dfbg-services__cta-text {
        font-size: 0.78rem;
        white-space: normal;
        line-height: 1.3;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================ */
@media (max-width: 600px) {
    .dfbg-services__header-wrap {
        padding: 60px 16px 30px;
    }

    .dfbg-services__headline {
        font-size: 1.5rem;
    }

    .dfbg-services__desc {
        font-size: 0.85rem;
    }

    .dfbg-services__stage {
        height: 68vh;
        padding: 0 16px;
        margin-bottom: 150px;
    }

    .dfbg-services__card {
        border-radius: 22px;
    }

    .dfbg-services__card-inner {
        padding: 28px 22px;
    }

    .dfbg-services__card-header {
        margin-bottom: 1.25rem;
    }

    .dfbg-services__num {
        min-width: 44px;
        height: 44px;
        font-size: 0.8rem;
    }

    .dfbg-services__icon {
        width: 26px;
        height: 26px;
    }

    .dfbg-services__card-title {
        font-size: 1.2rem;
    }

    .dfbg-services__card-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.7;
    }

    .dfbg-services__tag {
        font-size: 0.68rem;
        padding: 0.3rem 0.7rem;
    }

    .dfbg-services__bg-num {
        font-size: 8rem;
        top: -20px;
        left: -10px;
    }

    /* نشانگرها روی موبایل افقی بالای نوار پایین */
    .dfbg-services__indicators {
        top: auto;
        bottom: 140px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
    }

    .dfbg-services__indicator {
        width: 7px;
        height: 7px;
    }

    /* نوار پایین */
    .dfbg-services__bottom-bar {
        bottom: 20px;
        width: calc(100% - 32px);
        max-width: 100%;
        gap: 8px;
    }

    .dfbg-services__bottom-progress {
        height: 36px;
        padding: 0 16px;
    }

    .dfbg-services__bottom-progress-text {
        font-size: 0.68rem;
    }

    /* CTA متن مخفی، فقط دکمه */
    .dfbg-services__cta {
        padding: 6px;
        justify-content: center;
    }

    .dfbg-services__cta-text {
        display: none;
    }

    .dfbg-btn--sm {
        padding: 0.55rem 1.4rem !important;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   REDUCED MOTION — بدون انیمیشن اسکرولی
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .dfbg-services {
        height: auto !important;
    }

    .dfbg-services__sticky {
        position: relative !important;
        height: auto !important;
        padding: 40px 0;
    }

    .dfbg-services__stage {
        position: relative !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin-bottom: 0 !important;
    }

    .dfbg-services__card {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        inset: auto !important;
        height: auto !important;
        min-height: 380px;
        transition: none !important;
    }

    .dfbg-services__indicators,
    .dfbg-services__bottom-bar {
        display: none !important;
    }
}

/* ============================================
   TESTIMONIALS — SLIDER
   ============================================ */

.dfbg-testimonials {
    position: relative;
    width: 100%;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
    color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.dfbg-testimonials *,
.dfbg-testimonials *::before,
.dfbg-testimonials *::after {
    box-sizing: border-box;
}

/* ============================================
   HEADER
   ============================================ */
.dfbg-testimonials__container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.dfbg-testimonials__header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.dfbg-testimonials__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dfbg-testimonials__badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FF6A1A;
    flex-shrink: 0;
}

.dfbg-testimonials__badge-text {
    font-weight: 500;
}

.dfbg-testimonials__headline {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #ffffff;
}

.dfbg-testimonials__headline-line {
    display: inline;
}

.dfbg-testimonials__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #a1a1aa;
    margin: 0;
}

/* ============================================
   SLIDER WRAP
   ============================================ */
.dfbg-testimonials__slider-wrap {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.dfbg-testimonials__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    outline: none;
    cursor: grab;
}

.dfbg-testimonials__viewport.is-dragging {
    cursor: grabbing;
}

.dfbg-testimonials__track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    user-select: none;
}

.dfbg-testimonials__viewport.is-dragging .dfbg-testimonials__track {
    transition: none;
    cursor: grabbing;
}

/* ============================================
   SLIDE
   ============================================ */
.dfbg-testimonials__slide {
    flex-shrink: 0;
    /* عرض بر اساس slides_per_view در JS ست می‌شه */
    width: calc((100% - 40px) / 3);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

/* Center Mode — کارت وسط بزرگ‌تر */
.dfbg-testimonials[data-center="1"] .dfbg-testimonials__slide {
    opacity: 0.55;
    transform: scale(0.92);
}

.dfbg-testimonials[data-center="1"] .dfbg-testimonials__slide.is-center {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   CARD
   ============================================ */
.dfbg-testimonials__card {
    position: relative;
    height: 100%;
    background-color: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    display: flex;
}

.dfbg-testimonials__card:hover {
    border-color: rgba(255, 106, 26, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 106, 26, 0.1);
}

.dfbg-testimonials__card-inner {
    position: relative;
    padding: 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* ============================================
   QUOTE ICON
   ============================================ */
.dfbg-testimonials__quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 32px;
    height: 32px;
    color: rgba(255, 106, 26, 0.08);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   AUTHOR
   ============================================ */
.dfbg-testimonials__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.dfbg-testimonials__avatar-wrap {
    flex-shrink: 0;
}

.dfbg-testimonials__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 2px solid rgba(255, 106, 26, 0.3);
    background: linear-gradient(135deg, #FF6A1A, #0A1F44);
}

.dfbg-testimonials__avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
}

.dfbg-testimonials__author-info {
    flex: 1;
    min-width: 0;
}

.dfbg-testimonials__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.dfbg-testimonials__role {
    font-size: 0.72rem;
    color: #a1a1aa;
    margin-top: 2px;
    line-height: 1.4;
}

.dfbg-testimonials__logo {
    flex-shrink: 0;
    max-width: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dfbg-testimonials__logo img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.dfbg-testimonials__card:hover .dfbg-testimonials__logo {
    opacity: 1;
}

/* ============================================
   RATING
   ============================================ */
.dfbg-testimonials__rating {
    display: flex;
    gap: 3px;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 2;
}

.dfbg-testimonials__star {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #FF6A1A;
}

.dfbg-testimonials__star.is-empty {
    opacity: 0.2;
}

/* ============================================
   QUOTE
   ============================================ */
.dfbg-testimonials__quote {
    font-size: 0.85rem;
    line-height: 1.75;
    color: #a1a1aa;
    margin: 0 0 1rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

/* ============================================
   AUDIO (ویس)
   ============================================ */
.dfbg-testimonials__audio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.dfbg-testimonials__audio-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FF6A1A;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}

.dfbg-testimonials__audio-play svg {
    width: 14px;
    height: 14px;
    display: block;
}

.dfbg-testimonials__audio-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.5);
}

.dfbg-testimonials__audio-progress {
    flex: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.dfbg-testimonials__audio-progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background-color: #FF6A1A;
    border-radius: 9999px;
    transition: width 0.1s linear;
}

.dfbg-testimonials__audio-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: #a1a1aa;
    flex-shrink: 0;
    font-feature-settings: "ss01";
}

.dfbg-testimonials__audio-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
    flex-shrink: 0;
}

.dfbg-testimonials__audio-waves span {
    width: 2px;
    height: 100%;
    background-color: rgba(255, 106, 26, 0.4);
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.dfbg-testimonials__audio.is-playing .dfbg-testimonials__audio-waves span {
    background-color: #FF6A1A;
    animation: dfbg-audio-wave 0.8s ease-in-out infinite;
}

.dfbg-testimonials__audio-waves span:nth-child(1) { animation-delay: 0s; }
.dfbg-testimonials__audio-waves span:nth-child(2) { animation-delay: 0.1s; }
.dfbg-testimonials__audio-waves span:nth-child(3) { animation-delay: 0.2s; }
.dfbg-testimonials__audio-waves span:nth-child(4) { animation-delay: 0.3s; }
.dfbg-testimonials__audio-waves span:nth-child(5) { animation-delay: 0.4s; }
.dfbg-testimonials__audio-waves span:nth-child(6) { animation-delay: 0.5s; }
.dfbg-testimonials__audio-waves span:nth-child(7) { animation-delay: 0.6s; }
.dfbg-testimonials__audio-waves span:nth-child(8) { animation-delay: 0.7s; }
.dfbg-testimonials__audio-waves span:nth-child(9) { animation-delay: 0.8s; }
.dfbg-testimonials__audio-waves span:nth-child(10) { animation-delay: 0.9s; }

@keyframes dfbg-audio-wave {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1); }
}

/* ============================================
   VIDEO
   ============================================ */
.dfbg-testimonials__video {
    margin-top: auto;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
}

.dfbg-testimonials__video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0a0a0a;
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    display: block;
    border-radius: 12px;
}

.dfbg-testimonials__video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dfbg-testimonials__video-thumb:hover .dfbg-testimonials__video-poster {
    transform: scale(1.05);
}

.dfbg-testimonials__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FF6A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 106, 26, 0.6);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.dfbg-testimonials__play-btn svg {
    width: 20px;
    height: 20px;
    margin-right: -2px;
}

.dfbg-testimonials__video-thumb:hover .dfbg-testimonials__play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.dfbg-testimonials__video iframe,
.dfbg-testimonials__video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ============================================
   ARROWS
   ============================================ */
.dfbg-testimonials__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

.dfbg-testimonials__arrow svg {
    width: 20px;
    height: 20px;
}

.dfbg-testimonials__arrow:hover {
    background-color: #FF6A1A;
    border-color: #FF6A1A;
    box-shadow: 0 0 30px rgba(255, 106, 26, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.dfbg-testimonials__arrow--prev {
    right: 12px;
}

.dfbg-testimonials__arrow--next {
    left: 12px;
}

.dfbg-testimonials__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dfbg-testimonials__arrow:disabled:hover {
    background-color: rgba(15, 15, 18, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: translateY(-50%);
}

/* ============================================
   DOTS
   ============================================ */
.dfbg-testimonials__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 0 24px;
}

.dfbg-testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.dfbg-testimonials__dot:hover {
    border-color: rgba(255, 106, 26, 0.6);
    transform: scale(1.3);
}

.dfbg-testimonials__dot.is-active {
    background-color: #FF6A1A;
    border-color: #FF6A1A;
    width: 24px;
    border-radius: 9999px;
}

/* ============================================
   EDITOR MODE
   ============================================ */
.elementor-editor-active .dfbg-testimonials__track,
.elementor-edit-mode .dfbg-testimonials__track {
    transform: none !important;
    flex-wrap: wrap;
}

.elementor-editor-active .dfbg-testimonials__slide,
.elementor-edit-mode .dfbg-testimonials__slide {
    width: calc((100% - 40px) / 3) !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .dfbg-testimonials__slide {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .dfbg-testimonials__slide {
        width: 100%;
    }

    .dfbg-testimonials__arrow {
        width: 38px;
        height: 38px;
    }

    .dfbg-testimonials__arrow--prev {
        right: 4px;
    }

    .dfbg-testimonials__arrow--next {
        left: 4px;
    }

    .dfbg-testimonials__slider-wrap {
        padding: 0 16px;
    }

    .dfbg-testimonials__card-inner {
        padding: 22px;
    }

    /* Center mode توی موبایل غیرفعال */
    .dfbg-testimonials[data-center="1"] .dfbg-testimonials__slide {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 600px) {
    .dfbg-testimonials__header {
        margin-bottom: 2rem;
    }

    .dfbg-testimonials__headline {
        font-size: 1.5rem;
    }

    .dfbg-testimonials__avatar {
        width: 42px !important;
        height: 42px !important;
    }

    .dfbg-testimonials__arrow {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .dfbg-testimonials__track,
    .dfbg-testimonials__slide,
    .dfbg-testimonials__card {
        transition: none !important;
    }
}