/* ============================================================================
   Site Animations — انیمیشن‌های scroll، hover و micro-interactions
   ============================================================================
   استفاده:
     روی هر المان: data-animate="fade-up"   (یا fade-down/fade-left/fade-right/zoom-in/zoom-out/slide-up/blur-in)
     تأخیر:       data-animate-delay="200"  (میلی‌ثانیه)
     چند آیتم پشت سرهم به‌صورت زنجیره:
                  parent: data-animate-stagger="100"  (تأخیر بین فرزندان)
                  children: data-animate="fade-up"

   انیمیشن‌ها فقط یک بار اجرا می‌شن (وقتی المان وارد viewport شد) — JS کنترل می‌کنه
   ============================================================================ */

/* ─── Base ─── */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s ease;
    will-change: opacity, transform;
}

[data-animate].is-visible {
    opacity: 1;
    transform: none !important;
    filter: none !important;
}

/* ─── Animation types (initial states) ─── */
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="zoom-in"]    { transform: scale(0.85); }
[data-animate="zoom-out"]   { transform: scale(1.15); }
[data-animate="slide-up"]   { transform: translateY(60px); }
[data-animate="blur-in"]    { filter: blur(12px); transform: translateY(20px); }
[data-animate="flip-up"]    { transform: perspective(800px) rotateX(-20deg) translateY(30px); transform-origin: bottom; }

/* کاهش شدت انیمیشن برای کاربرانی که reduced-motion ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ============================================================================
   Hero Slider — Modern Cinematic Enhancements
   ============================================================================ */

.hero-slider {
    min-height: 620px !important;
}

/* مطمئن شدن از پوشش کامل پس‌زمینه‌ی هر slide */
.hero-slide-bg {
    background-color: var(--primary-dark) !important;
    background-size: cover !important;
    background-position: center center !important;
    inset: 0 !important;
}
/* اگر hero-slider-track ارتفاع کم بگیره، slide.active باید کل ارتفاع رو پر کنه */
.hero-slider-track {
    min-height: 620px;
}
.hero-slide.active {
    min-height: 620px !important;
    height: 100%;
}

/* Transition بهتر بین slides */
.hero-slide {
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.hero-slide:not(.active) .hero-slide-bg {
    transform: scale(1.2) !important;
}

/* Ken Burns + Parallax روی پس‌زمینه‌ی slide فعال */
.hero-slide.active .hero-slide-bg {
    animation: kenBurnsModern 16s ease-in-out infinite alternate;
}
@keyframes kenBurnsModern {
    0%   { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.18) translate(-3%, -2%); }
}

/* Overlay قوی‌تر و یکدست — تضمین خوانایی متن سفید روی هر نوع تصویر */
.hero-slide-overlay {
    background:
        linear-gradient(
            to left,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.65) 45%,
            rgba(0, 0, 0, 0.45) 100%
        ) !important;
}
/* لایه‌ی اضافی برای تضمین تیرگی پایین کل اسلایدر (نه فقط slide) */
.hero-slide-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 35%);
    pointer-events: none;
}

/* glow ظریف پشت محتوا برای جلب توجه (بدون باکس قاطع) */
.hero-slide.active .hero-slide-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 65%);
    animation: floatOrb 7s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}
@keyframes floatOrb {
    0%   { transform: translateY(-50%) scale(1); opacity: 0.7; }
    100% { transform: translateY(-55%) scale(1.15); opacity: 1; }
}

/* محتوای hero — cascading reveal با blur cleanup */
.hero-slide-inner > * {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s ease;
}
.hero-slide.active .hero-slide-inner > * {
    opacity: 1;
    transform: none;
    filter: none;
}
.hero-slide.active .hero-slide-inner > *:nth-child(1) { transition-delay: 0.20s; }
.hero-slide.active .hero-slide-inner > *:nth-child(2) { transition-delay: 0.35s; }
.hero-slide.active .hero-slide-inner > *:nth-child(3) { transition-delay: 0.50s; }
.hero-slide.active .hero-slide-inner > *:nth-child(4) { transition-delay: 0.65s; }
.hero-slide.active .hero-slide-inner > *:nth-child(5) { transition-delay: 0.80s; }

/* Typography ارتقاء یافته — سایزهای متعادل‌تر */
.hero-slide-inner h1 {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
    color: #fff !important;
    /* text-shadow چند لایه برای تضمین خوانایی روی هر تصویر */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    font-weight: 800;
}
.hero-slide-inner h1::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: 2px;
}

.hero-slide-inner .hero-subtitle {
    font-size: 1.05rem !important;
    color: var(--secondary) !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 4px 12px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.hero-slide-inner .lead {
    max-width: 620px;
    line-height: 2 !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

@media (max-width: 992px) {
    .hero-slide-inner h1 { font-size: 1.75rem !important; }
}
@media (max-width: 768px) {
    .hero-slider, .hero-slide { min-height: 460px !important; }
    .hero-slide-inner h1 { font-size: 1.5rem !important; }
    .hero-slide-inner .hero-subtitle { font-size: 0.95rem !important; }
}

/* Badge با glow و bounce */
.hero-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)) !important;
    color: #2c1810 !important;
    box-shadow:
        0 8px 24px rgba(var(--secondary-rgb), 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: badgeBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
    position: relative;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.hero-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--secondary), transparent);
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
}
@keyframes badgeBounce {
    0%   { transform: translateY(-15px) scale(0.7); opacity: 0; }
    60%  { transform: translateY(3px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}

/* دکمه‌های hero — modern with shine + glow */
.btn-hero-primary, .btn-hero-secondary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.95rem 2.2rem !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.btn-hero-primary::before, .btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.btn-hero-primary:hover, .btn-hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(var(--primary-rgb), 0.5);
}
.btn-hero-primary:hover::before, .btn-hero-secondary:hover::before {
    left: 150%;
}

/* Navigation arrows ارتقاء یافته */
.hero-slider-prev, .hero-slider-next {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 52px !important;
    height: 52px !important;
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-slider-prev:hover, .hero-slider-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
}

/* Dots مدرن — کشیده برای active */
.hero-slider-dots {
    z-index: 4;
}
.hero-dot {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border: 0 !important;
    border-radius: 6px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}
.hero-dot.active {
    background: var(--secondary) !important;
    width: 36px !important;
    box-shadow: 0 0 16px rgba(var(--secondary-rgb), 0.6);
}

/* Progress bar زیر slider برای نمایش auto-play */
.hero-slider .hero-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: 4;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(var(--secondary-rgb), 0.5);
}

/* ============================================================================
   Stats Counter — اعداد با pulse ظریف
   ============================================================================ */
.stat-item {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.stat-item .stat-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-item:hover .stat-icon {
    transform: rotate(-8deg) scale(1.1);
}

/* وقتی شمارش فعال شده، عدد یک flash کوچک می‌خوره */
.stat-number.counting {
    color: var(--primary);
}

/* ============================================================================
   Feature Cards — hover با lift + glow
   ============================================================================ */
.feature-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.06), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.12);
}
.feature-card:hover::after { left: 150%; }
.feature-card .feature-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease,
                background 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.18);
    background: var(--primary);
    color: #fff;
}

/* ============================================================================
   Award Cards
   ============================================================================ */
.award-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.award-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.award-card .award-image img,
.award-card .award-image-placeholder {
    transition: transform 0.5s ease;
}
.award-card:hover .award-image img,
.award-card:hover .award-image-placeholder {
    transform: scale(1.06);
}

/* ============================================================================
   Section Header Decoration
   ============================================================================ */
.section-subtitle {
    position: relative;
    display: inline-block;
    padding: 0.3rem 1rem;
}
.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--primary);
    opacity: 0.4;
}
.section-subtitle::before { right: -38px; }
.section-subtitle::after  { left:  -38px; }

/* ============================================================================
   Gallery Preview — Uniform Grid (همه آیتم‌ها یک اندازه)
   ============================================================================ */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.gallery-preview-grid .gp-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--bg-card2, #F9FAFB);
    aspect-ratio: 1 / 1;   /* ← همه مربع، یکسان */
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    display: block;
}
.gallery-preview-grid .gp-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
.gallery-preview-grid .gp-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-preview-grid .gp-item:hover img { transform: scale(1.1); }
.gallery-preview-grid .gp-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-preview-grid .gp-item:hover::after { opacity: 1; }
.gallery-preview-grid .gp-item .gp-overlay {
    position: absolute;
    bottom: 12px; right: 12px; left: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.gallery-preview-grid .gp-item:hover .gp-overlay {
    transform: translateY(0);
    opacity: 1;
}
/* آیکن گوشه برای نشان دادن قابل‌کلیک بودن */
.gallery-preview-grid .gp-item .gp-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}
.gallery-preview-grid .gp-item:hover .gp-icon {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 900px) {
    .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   Awards Section — مرکز‌چین و باپروح
   ============================================================================ */
.award-card {
    text-align: center;       /* ← همه‌چیز وسط‌چین */
    background: #fff;
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* Ribbon طلایی بالای کارت — همیشه visible */
.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary));
    background-size: 200% 100%;
    z-index: 2;
    transition: height 0.3s ease, background-position 0.6s ease;
}
.award-card:hover::before {
    height: 5px;
    background-position: 100% 0;
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(var(--primary-rgb), 0.15);
    border-color: var(--secondary);
}

.award-card .award-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--bg-card2, #F9FAFB) 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.award-card .award-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 60%, rgba(var(--secondary-rgb), 0.08) 100%);
    pointer-events: none;
}
.award-card .award-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.award-card:hover .award-image img { transform: scale(1.08); }
.award-card .award-image-placeholder {
    color: var(--secondary);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.award-card .award-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 20%;
    border: 2px dashed var(--secondary);
    border-radius: 50%;
    opacity: 0.35;
    animation: rotateSlow 20s linear infinite;
}
@keyframes rotateSlow {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.award-card .award-info {
    padding: 1.5rem 1.25rem 1.75rem;   /* ← فضای بیشتر */
    position: relative;
}
.award-card .award-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.award-card .award-info p {
    color: var(--text-muted, #9CA3AF);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.7;
}

/* Badge سال در گوشه‌ی تصویر */
.award-card .award-year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* آیکن trophy کوچک زیر عنوان به‌عنوان divider زیبا */
.award-card .award-divider {
    width: 32px;
    height: 1px;
    background: var(--secondary);
    margin: 0.5rem auto 0.75rem;
    position: relative;
}
.award-card .award-divider::before {
    content: '\f091';   /* trophy icon */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 0.4rem;
    color: var(--secondary);
    font-size: 0.7rem;
}

/* ============================================================================
   About Teaser — Placeholder زیبا اگر تصویر نباشه
   ============================================================================ */
.at-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--primary-dark) 60%,
        var(--accent, #111827) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.at-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(var(--secondary-rgb), 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: shimmerMove 8s ease-in-out infinite alternate;
}
.at-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 30px,
            rgba(255, 255, 255, 0.04) 30px,
            rgba(255, 255, 255, 0.04) 31px);
    pointer-events: none;
}
@keyframes shimmerMove {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, -3%) rotate(2deg); }
}
.at-image-placeholder .at-ph-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}
.at-image-placeholder .at-ph-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(var(--secondary-rgb), 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--secondary);
    font-size: 2.2rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    animation: pulseIcon 3s ease-in-out infinite;
}
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
.at-image-placeholder h4 {
    color: white;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.at-image-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ============================================================================
   Blog Preview Cards
   ============================================================================ */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bp-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #EEF0F3;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.bp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.bp-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-card2, #F9FAFB);
    position: relative;
}
.bp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bp-card:hover .bp-image img { transform: scale(1.05); }
.bp-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(var(--secondary-rgb), 0.18), transparent 50%),
        linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, #FEF8EA 100%);
    color: var(--primary);
    font-size: 2.4rem;
    position: relative;
    overflow: hidden;
}
.bp-image-placeholder::before {
    /* الگوی tile ظریف تزئینی */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 14px,
            rgba(var(--primary-rgb), 0.04) 14px,
            rgba(var(--primary-rgb), 0.04) 15px);
    pointer-events: none;
}
.bp-image-placeholder::after {
    /* دایره decorative */
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border: 2px dashed var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotateSlow 30s linear infinite;
}
.bp-image-placeholder i {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(var(--primary-rgb), 0.25));
}

/* ============================================================================
   Parallax Background Section — برای حس عمق
   ============================================================================ */
.parallax-section {
    position: relative;
    padding: 6rem 0;
    color: #fff;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(17, 24, 39, 0.85) 0%,
            rgba(var(--primary-rgb), 0.75) 50%,
            rgba(17, 24, 39, 0.85) 100%);
}
.parallax-section > .container-fluid {
    position: relative;
    z-index: 1;
    text-align: center;
}
.parallax-section .ps-eyebrow {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}
.parallax-section h2 {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.parallax-section p.lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 2;
    max-width: 720px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.parallax-section .ps-quote {
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 2.5rem;
}
.parallax-section .ps-quote::before,
.parallax-section .ps-quote::after {
    color: var(--secondary);
    font-size: 2rem;
    font-family: serif;
    position: absolute;
    top: -10px;
    line-height: 1;
}
.parallax-section .ps-quote::before { content: '\201C'; right: 0; }
.parallax-section .ps-quote::after  { content: '\201D'; left: 0; bottom: -10px; top: auto; }

.parallax-section .ps-author {
    margin-top: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

/* در موبایل background-fixed خوب کار نمی‌کنه، scroll عادی می‌شه */
@media (max-width: 992px) {
    .parallax-section {
        background-attachment: scroll;
        padding: 3.5rem 0;
    }
    .parallax-section h2 { font-size: 1.3rem; }
}

/* ============================================================================
   SVG Wave / Curve Dividers
   ============================================================================ */
.section-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
    pointer-events: none;
}
.section-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}
.section-divider.flip svg { transform: rotateX(180deg); }

/* ============================================================================
   Section Banding — رنگ‌های متفاوت برای تمایز بخش‌ها
   ============================================================================ */
.bg-light-cream {
    background: linear-gradient(180deg, #FAF7F2 0%, #fff 100%);
}
.bg-soft-rose {
    background: linear-gradient(180deg, #FEF7F7 0%, #fff 100%);
}
.bg-warm-gradient {
    background:
        radial-gradient(ellipse at top, rgba(var(--secondary-rgb), 0.08), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(var(--primary-rgb), 0.05), transparent 60%),
        #fff;
}

/* ============================================================================
   Image Frame — تصاویر با قاب دکوراتیو
   ============================================================================ */
.framed-image {
    position: relative;
    display: inline-block;
}
.framed-image::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--secondary);
    border-radius: 16px;
    z-index: -1;
    transition: all 0.4s ease;
}
.framed-image:hover::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
}

/* ============================================================================
   Hover lift utility class
   ============================================================================ */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.bp-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bp-cat {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.7rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    align-self: flex-start;
}
.bp-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 0.5rem;
    line-height: 1.6;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-title:hover { color: var(--primary); text-decoration: none; }
.bp-summary {
    color: var(--text-muted, #9CA3AF);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.bp-meta {
    display: flex;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted, #9CA3AF);
    padding-top: 0.75rem;
    border-top: 1px solid #EEF0F3;
}
.bp-meta i { color: var(--primary); margin-left: 0.25rem; }

@media (max-width: 900px) {
    .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-preview-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   About Teaser Section
   ============================================================================ */
.about-teaser {
    background: linear-gradient(135deg, var(--bg-card2, #F9FAFB) 0%, #fff 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.about-teaser::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}
.about-teaser .at-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.about-teaser .at-image {
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(var(--primary-rgb), 0.15);
    position: relative;
}
.about-teaser .at-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--secondary);
    border-radius: 18px;
    transform: translate(20px, 20px);
    z-index: -1;
}
.about-teaser .at-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.about-teaser:hover .at-image img { transform: scale(1.05); }
.about-teaser .at-content .at-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}
.about-teaser .at-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary, #111827);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.about-teaser .at-content p {
    color: var(--text-secondary, #4B5563);
    line-height: 2;
    margin-bottom: 1.5rem;
}
.about-teaser .at-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.about-teaser .at-features .at-feat {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-secondary, #4B5563);
    font-size: 0.95rem;
}
.about-teaser .at-features .at-feat i {
    color: var(--primary);
    background: var(--primary-light);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .about-teaser .at-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-teaser .at-image { max-width: 480px; margin: 0 auto; }
}

/* دکمه‌ی متفاوت و شیک برای بخش "درباره ما" — outline با hover slide */
.at-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;     /* pill shape */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.at-readmore::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    border-radius: inherit;
}
.at-readmore:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(-4px);
}
.at-readmore:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.at-readmore i {
    transition: transform 0.3s ease;
}
.at-readmore:hover i {
    transform: translateX(-4px);
}

/* ============================================================================
   CTA Section Enhancement
   ============================================================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--secondary-rgb), 0.15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}
.cta-section .cta-inner {
    position: relative;
    z-index: 1;
}
.cta-section .btn-cta-primary,
.cta-section .btn-cta-secondary {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-section .btn-cta-primary:hover,
.cta-section .btn-cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ============================================================================
   Section Title — Underline accent
   ============================================================================ */
.section-title {
    position: relative;
    padding-bottom: 0.85rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
[data-animate].is-visible .section-title::after {
    transform: translateX(-50%) scaleX(1);
}
/* اگر section-title بدون data-animate باشه */
.section-header.is-visible .section-title::after,
.section-header:not([data-animate]) .section-title::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================================================
   Scroll-to-top button
   ============================================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 90;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ============================================================================
   Generic Smooth Reveal Section
   ============================================================================ */
section.section {
    padding: 4.5rem 0;
    position: relative;
}

/* پس‌زمینه تزئینی برای سکشن‌های "section-decorated" */
.section-decorated::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 60%;
    background:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 12px,
            rgba(var(--primary-rgb), 0.03) 12px,
            rgba(var(--primary-rgb), 0.03) 13px);
    pointer-events: none;
    z-index: 0;
}
.section-decorated > * { position: relative; z-index: 1; }
