/* =========================================
   کادر اصلی و ساختار بنتو گرید
========================================= */
.testeto-about-bento {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 20px;
    direction: rtl; 
}

/* حل مشکل اعداد انگلیسی در متون فارسی */
.testeto-about-bento :dir(ltr),
.testeto-about-bento [dir="ltr"] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.t-bento-row-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.t-bento-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.t-bento-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 15px 35px -15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================
   کارت داستان
========================================= */
.t-story-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.t-story-card .t-badge,
.t-story-card .t-story-h2,
.t-story-card .t-story-body {
    text-align: start;
    unicode-bidi: isolate;
}

.t-badge {
    background: #fffbeb;
    color: #b45309;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 1px solid #fde68a;
}

.t-story-h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.t-story-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #4b5563;
    font-weight: 500;
}
.t-story-body p { margin-bottom: 15px; }
.t-story-body p:last-child { margin-bottom: 0; }
.t-story-body strong { color: #111827; font-weight: 800; }

/* =========================================
   کارت ویژوال انتزاعی (Abstract 3D Nodes)
========================================= */
.t-visual-card {
    background: #111827; 
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.t-abstract-network {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    animation: networkFloat 8s ease-in-out infinite alternate;
}

@keyframes networkFloat {
    0% { transform: translateY(-10px) scale(0.98); }
    100% { transform: translateY(10px) scale(1.02); }
}

/* خطوط نورانی (طراحی با CSS) */
.t-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,193,7,0.1) 0%, #FFC107 50%, rgba(255,193,7,0.1) 100%);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    transform-origin: left center;
    opacity: 0.8;
}

.l-1 { top: 35%; left: 25%; width: 50%; transform: rotate(15deg); }
.l-2 { top: 65%; left: 35%; width: 40%; transform: rotate(-35deg); }
.l-3 { top: 48%; left: 65%; width: 30%; transform: rotate(75deg); }

/* گره‌های شیشه‌ای (Glassmorphism Nodes) */
.t-node {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 193, 7, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-node-core {
    width: 12px;
    height: 12px;
    background: #FFC107;
    border-radius: 50%;
    box-shadow: 0 0 20px #FFC107, 0 0 40px #FFC107;
    animation: pulseCore 3s infinite alternate;
}

@keyframes pulseCore {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

.n-1 { width: 60px; height: 60px; top: 25%; left: 20%; }
.n-2 { width: 90px; height: 90px; top: 40%; left: 60%; } 
.n-3 { width: 40px; height: 40px; top: 75%; left: 30%; }
.n-4 { width: 70px; height: 70px; top: 60%; left: 75%; }

/* =========================================
   کارت‌های اهداف
========================================= */
.t-goal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 35px;
    text-align: start;
}

.t-goal-card:hover {
    transform: translateY(-5px);
    border-color: #FFC107;
    box-shadow: 0 20px 40px -10px rgba(255, 193, 7, 0.15);
}

.t-goal-icon {
    width: 50px;
    height: 50px;
    background: #f9fafb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.t-goal-card:hover .t-goal-icon {
    background: #FFC107;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.t-goal-icon svg { width: 24px; height: 24px; }

.t-goal-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    unicode-bidi: isolate;
}

.t-goal-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
    font-weight: 500;
    unicode-bidi: isolate;
}

/* =========================================
   ریسپانسیو
========================================= */
@media (max-width: 992px) {
    .t-bento-row-top { grid-template-columns: 1fr; }
    .t-bento-row-bottom { grid-template-columns: repeat(2, 1fr); }
    .t-visual-card { min-height: 300px; order: -1; } 
}

@media (max-width: 768px) {
    .t-bento-row-bottom { grid-template-columns: 1fr; }
    .t-story-card { padding: 30px 20px; }
    .t-story-h2 { font-size: 1.5rem; }
}