/* ========================================================== */
/* تنظیمات عمومی و فونت وب سراسری دسکتاپ و موبایل */
/* ========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

body {
    background-color: #f4effa;
    color: #211633;
    line-height: 1.8;
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

:root {
    --primary-color: #bd1f70;
    --secondary-color: #4a2e8c;
}

/* ========================================================== */
/* پویایی پس‌زمینه (Fluid Bubbles & Shapes) */
/* ========================================================== */
.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 10%, rgba(74, 46, 140, 0.03) 0%, transparent 60%),
                radial-gradient(circle at 90% 90%, rgba(189, 31, 112, 0.03) 0%, transparent 60%);
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(74, 46, 140, 0.06), rgba(189, 31, 112, 0.05));
    border-radius: 43% 57% 50% 50% / 40% 40% 60% 60%;
    filter: blur(1px);
}

.shape-1 { width: 320px; height: 320px; top: 8%; left: -90px; animation: floatAnim 22s infinite alternate ease-in-out; }
.shape-2 { width: 260px; height: 260px; bottom: 8%; right: -70px; animation: floatAnim 18s infinite alternate-reverse ease-in-out; }
.shape-3 { width: 190px; height: 190px; top: 55%; left: 4%; opacity: 0.7; animation: floatAnim 25s infinite linear; }
.shape-4 { width: 130px; height: 130px; top: 22%; right: 12%; border-radius: 50%; opacity: 0.5; }

@keyframes floatAnim {
    0% { transform: translate(0, 0) rotate(0deg); border-radius: 40% 60% 60% 40%; }
    50% { transform: translate(30px, -20px) rotate(45deg); }
    100% { transform: translate(50px, 40px) rotate(90deg); border-radius: 65% 35% 45% 55%; }
}

/* ========================================================== */
/* انیمیشن تغییر رنگ هماهنگ گرادیانت */
/* ========================================================== */
@keyframes fluidGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================================== */
/* هدر اختصاصی عمودی (عنوان -> لوگو -> شعار) */
/* ========================================================== */
.site-header {
    background: linear-gradient(-45deg, #32195c, #4a2e8c, #851c55, #bd1f70);
    background-size: 400% 400%;
    animation: fluidGradient 8s ease infinite;
    color: #ffffff;
    padding: 30px 0;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.header-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    width: 100%;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-video-container {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-top: 5px;
}

.site-logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* استایل مدرن کادر شیشه‌ای مایع (Liquid Glass) برای شعار */
.liquid-glass-tagline {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 9px 25px;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.15);
    animation: floatingGlass 4s ease-in-out infinite alternate;
}

.liquid-glass-tagline .tagline {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.12rem;
    letter-spacing: 0.3px;
}

@keyframes floatingGlass {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

/* ========================================================== */
/* کانتینر محتوا */
/* ========================================================== */
.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin: 25px 0 15px 0;
}

/* ========================================================== */
/* اسلایدر بنرها */
/* ========================================================== */
.slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 3px solid var(--primary-color);
    aspect-ratio: 2.2 / 1;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.slider-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slideAnimation 12s infinite ease-in-out;
}

.slide { width: 33.333%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: fill; }

@keyframes slideAnimation {
    0%, 28% { transform: translateX(0); }
    33%, 61% { transform: translateX(33.333%); }
    66%, 100% { transform: translateX(66.666%); }
}

/* ========================================================== */
/* باکس متمایز تسهیلات وام سفر */
/* ========================================================== */
.loan-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 25px 0 12px 0;
}

.loan-special-block {
    background: linear-gradient(-45deg, #d50000, #ff6d00, #ffb300, #ff3d00);
    background-size: 400% 400%;
    animation: fluidGradient 6s ease infinite;
    padding: 30px 24px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.25);
}

.loan-p {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    line-height: 1.8;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
    letter-spacing: -0.1px;
}

.flasher-box {
    position: relative;
    border: 3.5px solid #fff59d !important;
    animation: pulseBorder 1.2s infinite alternate, pulseText 1.2s infinite alternate;
}

@keyframes pulseBorder {
    0% {
        border-color: #fff59d;
        box-shadow: 0 0 8px rgba(255, 245, 157, 0.6), inset 0 0 6px rgba(255, 245, 157, 0.2);
    }
    100% {
        border-color: #ffffff;
        box-shadow: 0 0 26px rgba(255, 255, 255, 0.95), inset 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

@keyframes pulseText {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* ========================================================== */
/* بخش درباره ما (پایین صفحه) */
/* ========================================================== */
.about-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin: 15px 0 10px 0;
}

.intro-block.matching-header-theme {
    background: linear-gradient(-45deg, #32195c, #4a2e8c, #851c55, #bd1f70);
    background-size: 400% 400%;
    animation: fluidGradient 8s ease infinite;
    padding: 24px 15px; /* کمی پدینگ افقی برای ایجاد فضای ایمن متن اضافه شد */
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(74, 46, 140, 0.15);
}

.intro-block .main-p {
    font-size: 0.88rem; /* تغییر سایز از 1rem به 0.88rem تا متن دقیقاً در یک خط جا شود و بیرون نزند */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap; /* نگه داشتن متن در یک خط */
}

.intro-block .sub-p {
    font-size: 0.88rem;
    font-weight: 500;
    color: #fffcfa;
    line-height: 1.75;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.margin-top-inside {
    margin-top: 35px !important;
}

/* ========================================================== */
/* دکمه‌های شبکه‌های اجتماعی */
/* ========================================================== */
.social-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.link-row { display: flex; gap: 12px; width: 100%; }
.link-row .social-link { flex: 1; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.link-icon { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.link-icon.icon-left { order: 1; }
.social-link span { order: 2; flex-grow: 1; text-align: center; }
.link-icon.icon-right { order: 3; }

/* رنگ‌بندی گرادیانت دکمه‌ها */
.social-link.neshan { background: linear-gradient(135deg, #00bfa5, #00897b); }
.social-link.soroush { background: linear-gradient(135deg, #29b6f6, #0288d1); }
.social-link.eitaa { background: linear-gradient(135deg, #f16e20, #d8530c); }
.social-link.rubika { background: linear-gradient(135deg, #212121, #424242); }
.social-link.bale { background: linear-gradient(135deg, #00c853, #009624); }
.social-link.rubino { background: linear-gradient(135deg, #8e24aa, #6a1b9a); }
.social-link.telegram { background: linear-gradient(135deg, #229ed9, #1a80b0); }
.social-link.instagram { background: linear-gradient(135deg, var(--primary-color), #911252); }
.social-link.whatsapp { background: linear-gradient(135deg, #37da73, #25b85c); }
.social-link.call-btn { background: linear-gradient(135deg, var(--secondary-color), #361f6b); }
.social-link.igap { background: linear-gradient(135deg, #1778bd, #00bcac); }

.social-link:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.12); }

/* ساختار اختصاصی چیدمان دکمه‌های دو شماره‌ای تماس */
.content-centered {
    justify-content: center !important;
    gap: 12px !important;
}

.font-small {
    font-size: 0.92rem !important;
    flex: 1;
    max-width: 49%;
}

/* ========================================================== */
/* فوتر */
/* ========================================================== */
.site-footer { background-color: #1a1129; color: #90899e; padding: 15px 0; text-align: center; font-size: 0.78rem; margin-top: 35px; }

/* ========================================================== */
/* ریسپانسیو اختصاصی موبایل */
/* ========================================================== */
@media (max-width: 768px) {
    .logo-text { font-size: 1.3rem; }
    .liquid-glass-tagline .tagline { font-size: 0.95rem; }
    .liquid-glass-tagline { padding: 7px 20px; }
    .logo-video-container { width: 70px; height: 70px; }
    .link-row { flex-direction: column; gap: 12px; }
    .font-small { max-width: 100%; }
    .slider-container { aspect-ratio: 2 / 1; }
    .loan-p { font-size: 0.88rem; padding: 2px 0; }
    .loan-special-block { padding: 22px 16px; }
    
    /* بازنشانی nowrap در حالت موبایل برای جلوگیری از بیرون‌زدگی متن در صفحات خیلی کوچک */
    .intro-block .main-p {
        white-space: normal;
        font-size: 0.95rem;
    }
}