﻿
/* ============================================================
   CTA (Call To Action)
   ============================================================ */
.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.cta-button {
    background: linear-gradient(135deg, #3aa2e0, #36c57d);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffff00 !important;
}

.cta-secondary {
    background: linear-gradient(135deg, #36c57d, #3aa2e0);
}

/* ============================================================
   عنوان اصلی گالری‌ها
   ============================================================ */
.gallery-main-title {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    text-align: right;
    margin: 10px 0 ;
    font-size: 14pt !important;
    font-weight: bold !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* ============================================================
   گالری محصول خدمات (Link Gallery)
   ============================================================ */
.link-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: flex-start;
    direction: rtl;
}

.link-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.link-icon {
    width: 100%;
    /* height: 180px; */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f5f5f5;
    max-width: 400px;
}

.link-card h4 {
    margin: 10px 0;
    font-size: 16px;
}
.link-card h4 a {
    color: #333;
    text-decoration: none;
}
.link-card h4 a:hover {
    color: #0066cc;
}

.link-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
}

.link-price {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13pt;
    font-weight: bold;
    margin: 8px 2px;
}

.link-more {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13pt;
    font-weight: bold;
    transition: all 0.3s ease;
}
.link-more.btn-view {
    background: #0066cc;
    color: #fff;
}
.link-more.btn-view:hover {
    background: #0052a3;
    text-decoration: none;
}
.link-more.btn-buy {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13pt;
    font-weight: bold;
    margin: 8px 2px;
}
.link-more.btn-buy:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ============================================================
   FAQ (سوالات متداول)
   ============================================================ */
.faq-item {
    border: 1px solid #4CAF50;
    border-radius: 8px;
    margin: 10px 0;
    padding: 10px;
    background: #f9fff9;
}

.faq-question {
    margin: 0;
    cursor: pointer;
    color: #2e7d32;
    text-align: justify;
}
.faq-question:hover {
    color: #1b5e20;
}

.faq-answer {
    display: none;
    margin-top: 8px;
    color: #333;
}
.faq-item.active .faq-answer {
    display: block;
    text-align: justify;
}
/* ============================================================
   گالری تصویر - استایل پایه (بدون flex، CSS Grid در JS اعمال میشه)
   ============================================================ */
.image-gallery {
    display: grid;
    gap: 20px;
    margin: 0;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    /* grid-template-columns از JS اعمال میشه */
}

.image-gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    min-width: 0; /* مهم: اجازه بده کوچکتر از محتوا بشه */
    max-width: 100% !important;
}

.image-gallery-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-gallery-item-wrapper .image-gallery-item {
    display: block;
    width: 100%;
    text-decoration: none;
    flex: none;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}

.image-gallery-item-wrapper .image-gallery-item img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px 10px 0 0;
}

.image-gallery-item-wrapper .video-title-overlay {
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
}

/* ============================================================
   گالری تصویر داینامیک - حداقل 2 ستون در موبایل
   ============================================================ */

/* دسکتاپ (بالای 768px): auto-fit بر اساس min-width */
.image-gallery-dynamic {
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-min-width, 200px), 1fr));
}

/* تبلت (481px تا 768px): حداقل 2 ستون، حداکثر 4 ستون */
@media (max-width: 768px) {
    .image-gallery-dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* موبایل (زیر 480px): همیشه 2 ستون */
@media (max-width: 480px) {
    .image-gallery-dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* موبایل خیلی کوچک (زیر 360px): همیشه 2 ستون با فاصله کمتر */
@media (max-width: 360px) {
    .image-gallery-dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

/* ============================================================
   توضیحات زیر تصویر (جدید)
   ============================================================ */
.image-gallery-item-wrapper .image-desc-overlay {
    text-align: center;
    padding: 5px 8px;
    font-size: 12px;
    color: #666;
    width: 100%;
    background: #ffffff;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
     white-space: pre-line !important;
}


/* ============================================================
   گالری ویدئو
   ============================================================ */
.video-title-overlay {
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    font-size: 13px;
    font-weight: bold;
}

/* ============================================================
   نظرات مشتریان (Testimonials)
   ============================================================ */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 30px 0;
    direction: rtl;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 0 1 calc(33% - 65px);
    min-width: 260px;
    border: 1px solid #f0f0f0;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff4757;
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.testimonial-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}
.testimonial-info span {
    font-size: 13px;
    color: #777;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
    margin-right: auto;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.testimonial-date {
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: left;
}

/* ============================================================
   بلاک‌کوت (نقل‌قول)
   ============================================================ */
blockquote {
    background: linear-gradient(135deg, #f3f9f5 0%, #d0ebe0 100%);
    border-left: 8px solid #4a90e2;
    border-radius: 16px;
    padding: 20px 18px;
    font-size: 12pt;
    color: #1e2a3a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
    max-width: 95%;
    margin: 20px auto;
    line-height: 200%;
}
blockquote:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}
blockquote p {
    margin: 0;
}

/* ============================================================
   گالری لینک ساده (مطالب مشابه)
   ============================================================ */
.simple-link-gallery {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border: 1px solid #eaeef2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    direction: rtl;
}
.simple-link-gallery li {
    border-bottom: 1px solid #f0f0f0;
}
.simple-link-gallery li:last-child {
    border-bottom: none;
}
.simple-link-gallery li a {
    display: block;
    padding: 14px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}
.simple-link-gallery li a:hover {
    background: #f8f9fa;
    color: #0066cc;
    padding-right: 25px;
}

/* ============================================================
   شمارنده آمار (Counter)
   ============================================================ */
.counter-section {
    background: #1a1a2e;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.counter-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.counter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.counter-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.counter-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.counter-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ff4757;
    display: inline-block;
    transition: transform 0.3s ease;
}
.counter-item:hover .counter-icon {
    transform: scale(1.1);
}

.counter-number-wrapper {
    margin-bottom: 15px;
}
.counter-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff4757;
    line-height: 1;
    display: inline-block;
}
.counter-suffix {
    font-size: 32px;
    font-weight: 700;
    color: #ff4757;
    margin-right: 5px;
}
.counter-label {
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 500;
    margin-top: 10px;
}

.counter-progress {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 15px auto 0;
    overflow: hidden;
}
.counter-progress-bar {
    width: 0%;
    height: 100%;
    background: #ff4757;
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

/* ============================================================
   پکیج قیمت (Pricing Card)
   ============================================================ */
.pricing-section {
    margin: 50px 0;
    padding: 20px;
    direction: rtl;
}
.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    direction: rtl;
}
.pricing-card {
    flex: 1;
    min-width: 220px;
    max-width: calc(20% - 25px);
    background: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.pricing-card-featured {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff, #fff9f0);
    transform: scale(1.02);
}
.pricing-card-featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ffd700;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.pricing-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff4757;
}
.pricing-price {
    font-size: 32px;
    font-weight: 800;
    color: #ff4757;
    margin-bottom: 5px;
}
.pricing-period {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.pricing-features li .check {
    color: #28a745;
    font-size: 18px;
}
.pricing-features li .cross {
    color: #dc3545;
    font-size: 18px;
}

.pricing-btn {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.pricing-btn:hover {
    background: #e03a4a;
    transform: scale(1.05);
    color: #fff;
}
.pricing-card-featured .pricing-btn {
    background: #ffd700;
    color: #333;
}
.pricing-card-featured .pricing-btn:hover {
    background: #e6c200;
}

/* ============================================================
   جدول قیمت
   ============================================================ */
.price-table-container {
    margin: 30px 0;
    overflow-x: auto;
    overflow-y: visible;
    direction: rtl;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.price-table-container::-webkit-scrollbar {
    height: 8px;
}
.price-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.price-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.price-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.price-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.price-table thead tr {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}
.price-table th {
    color: #fff;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}
.price-table tbody tr {
    transition: all 0.3s ease;
}
.price-table tbody tr:hover td {
    background: rgba(46, 213, 115, 0.2) !important;
    transform: scale(1.01);
}
.price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.price-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 1 100%;
    }
    .counter-section {
        padding: 40px 15px;
    }
    .counter-number {
        font-size: 32px;
    }
    .counter-suffix {
        font-size: 24px;
    }
    .counter-icon {
        font-size: 40px;
    }
    .counter-label {
        font-size: 13px;
    }
    .counter-item {
        padding: 15px 10px;
        min-width: 150px;
    }
    .pricing-card {
        max-width: 100%;
    }
    .pricing-section {
        padding: 10px;
    }
    
    .price-table-container {
        margin: 20px 0;
        border-radius: 12px;
        border: 1px solid #eee;
        background: #fafafa;
        padding: 5px 0;
    }
    .price-table {
        min-width: 500px;
        border-radius: 12px;
    }
    .price-table th,
    .price-table td {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .price-table th {
        font-size: 11px;
        padding: 10px 12px;
    }
    .price-table td {
        font-size: 11px;
        padding: 8px 12px;
    }
    .price-table-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .price-table-container::after {
        content: "↔ برای دیدن بقیه جدول اسکرول کنید";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        padding: 8px 0 4px 0;
        font-family: IRANSans, Tahoma, sans-serif;
    }
}

@media (max-width: 576px) {
    .link-card {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }
    .link-icon {
    }
}

@media (max-width: 480px) {
    .price-table {
        min-width: 400px;
    }
    .price-table th,
    .price-table td {
        padding: 6px 8px;
        font-size: 10px;
    }
    .price-table th {
        font-size: 10px;
    }
    .price-table td {
        font-size: 10px;
    }
}


/* ============================================================
   🎬 Video Gallery System
   ============================================================ */

.video-gallery-wrapper {
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    margin: 20px 0;
}

.video-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.video-gallery-item {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* لینک روی عکس — اینجا کلاس popup-media هست */
.video-gallery-item .popup-media {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    background: #000;
}

/* 🎯 دکمه پلی با CSS — به جای span داخل HTML */
.video-gallery-item .popup-media::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding-left: 4px;
    pointer-events: none;
    box-sizing: border-box;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: videoPlayPulse 2.2s infinite;
    z-index: 2;
}

.video-gallery-item:hover .popup-media::after {
    background: rgba(220, 53, 69, 0.95);
    transform: translate(-50%, -50%) scale(1.12);
    animation: none;
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.2);
}

@keyframes videoPlayPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* thumbnail */
.video-thumb {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.95);
    position: relative;
    z-index: 1;
}

.video-gallery-item:hover .video-thumb {
    transform: scale(1.06);
    filter: brightness(1);
}

/* عنوان زیر ویدئو */
.video-item-title {
    padding: 12px 14px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   📱 Responsive
   ============================================================ */
@media (max-width: 768px) {
    .video-gallery-grid { gap: 14px; }

    .video-gallery-item {
        width: calc(50% - 7px);
        max-width: 320px;
        border-radius: 10px;
    }


    .video-gallery-item .popup-media::after {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .video-item-title {
        font-size: 12px;
        padding: 10px;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .video-gallery-wrapper { margin: 12px 0; }
    .video-gallery-grid { gap: 12px; }

    .video-gallery-item {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }


    .video-gallery-item .popup-media::after {
        width: 54px;
        height: 54px;
        font-size: 18px;
        padding-left: 5px;
    }

    .video-item-title {
        font-size: 13px;
        padding: 10px 12px;
        min-height: 40px;
    }
}



/* ============================================================
   🌑 جعبه نقل قول تیره با درخشش (Dark Glow Box)
   ============================================================ */

.dark-glow-box {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    padding: 28px 32px;
    border-radius: 20px;
    background: rgb(0 0 0 / 70%);
    color: #ffffff;
    font-size: 16px;
    line-height: 2;
    text-align: right;
    direction: rtl;
    -webkit-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.75),
                        1px 6px 32px -10px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.75),
                     1px 6px 32px -10px rgba(0, 0, 0, 0.75);
    box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.75),
                1px 6px 32px -10px rgba(0, 0, 0, 0.75);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dark-glow-box p {
    margin: 0 0 12px;
    color: inherit;
}

.dark-glow-box p:last-child {
    margin-bottom: 0;
}

.dark-glow-box a {
    color: #7fd8ff;
    text-decoration: underline;
}

.dark-glow-box strong,
.dark-glow-box b {
    color: #ffffff;
    font-weight: 700;
}

/* افکت هاور روی دسکتاپ */
.dark-glow-box:hover {
    transform: translateY(-2px);
    -webkit-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.85),
                        1px 10px 40px -10px rgba(0, 0, 0, 0.85);
    -moz-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.85),
                     1px 10px 40px -10px rgba(0, 0, 0, 0.85);
    box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.85),
                1px 10px 40px -10px rgba(0, 0, 0, 0.85);
}

/* ============================================================
   📱 Responsive
   ============================================================ */
@media (max-width: 768px) {
    .dark-glow-box {
        margin: 16px auto;
        padding: 20px 22px;
        border-radius: 16px;
        font-size: 15px;
        line-height: 1.9;
    }
}

@media (max-width: 480px) {
    .dark-glow-box {
        margin: 12px auto;
        padding: 16px 18px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 1.85;
    }
}

























/* ═══════════════════════════════════════════════════════════
   AiContent.css — استایل‌های محتوای هوش مصنوعی
   نسخه با پشتیبانی از ادیتور TinyMCE (نمایش اولیه بدون JS)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. VARIABLES — پالت رنگی
   ═══════════════════════════════════════════════════════════ */
:root {
    --ai-blue-soft: #eff6ff;
    --ai-blue-main: #3b82f6;
    --ai-blue-dark: #1e3a8a;
    --ai-blue-border: #dbeafe;
    --ai-blue-shadow: rgba(59,130,246,.2);

    --ai-green-soft: #f0fdf4;
    --ai-green-main: #22c55e;
    --ai-green-dark: #166534;
    --ai-green-border: #dcfce7;
    --ai-green-shadow: rgba(34,197,94,.2);

    --ai-red-soft: #fef2f2;
    --ai-red-main: #ef4444;
    --ai-red-dark: #991b1b;
    --ai-red-border: #fee2e2;
    --ai-red-shadow: rgba(239,68,68,.2);

    --ai-yellow-soft: #fffbeb;
    --ai-yellow-main: #f59e0b;
    --ai-yellow-dark: #92400e;
    --ai-yellow-border: #fef3c7;
    --ai-yellow-shadow: rgba(245,158,11,.2);

    --ai-purple-soft: #faf5ff;
    --ai-purple-main: #a855f7;
    --ai-purple-dark: #6b21a8;
    --ai-purple-border: #f3e8ff;
    --ai-purple-shadow: rgba(168,85,247,.2);

    --ai-gray-soft: #f8fafc;
    --ai-gray-main: #64748b;
    --ai-gray-dark: #1e293b;
    --ai-gray-border: #e2e8f0;
    --ai-gray-shadow: rgba(100,116,139,.2);

    --ai-soft: var(--ai-blue-soft);
    --ai-main: var(--ai-blue-main);
    --ai-dark: var(--ai-blue-dark);
    --ai-border: var(--ai-blue-border);
    --ai-shadow: var(--ai-blue-shadow);
}

/* ═══════════════════════════════════════════════════════════
   2. THEME COLORS
   ═══════════════════════════════════════════════════════════ */
.ai-theme-blue { --ai-soft: var(--ai-blue-soft); --ai-main: var(--ai-blue-main); --ai-dark: var(--ai-blue-dark); --ai-border: var(--ai-blue-border); --ai-shadow: var(--ai-blue-shadow); }
.ai-theme-green { --ai-soft: var(--ai-green-soft); --ai-main: var(--ai-green-main); --ai-dark: var(--ai-green-dark); --ai-border: var(--ai-green-border); --ai-shadow: var(--ai-green-shadow); }
.ai-theme-red { --ai-soft: var(--ai-red-soft); --ai-main: var(--ai-red-main); --ai-dark: var(--ai-red-dark); --ai-border: var(--ai-red-border); --ai-shadow: var(--ai-red-shadow); }
.ai-theme-yellow { --ai-soft: var(--ai-yellow-soft); --ai-main: var(--ai-yellow-main); --ai-dark: var(--ai-yellow-dark); --ai-border: var(--ai-yellow-border); --ai-shadow: var(--ai-yellow-shadow); }
.ai-theme-purple { --ai-soft: var(--ai-purple-soft); --ai-main: var(--ai-purple-main); --ai-dark: var(--ai-purple-dark); --ai-border: var(--ai-purple-border); --ai-shadow: var(--ai-purple-shadow); }
.ai-theme-gray { --ai-soft: var(--ai-gray-soft); --ai-main: var(--ai-gray-main); --ai-dark: var(--ai-gray-dark); --ai-border: var(--ai-gray-border); --ai-shadow: var(--ai-gray-shadow); }

/* ═══════════════════════════════════════════════════════════
   3. CARD A — تایملاین
   ═══════════════════════════════════════════════════════════ */
.ai-timeline { position: relative; margin-bottom: 14px; }

.ai-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 19px;
    width: 2px;
    background: linear-gradient(180deg, var(--ai-border), var(--ai-main), var(--ai-border));
    border-radius: 2px;
    z-index: 1;
}

.ai-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    z-index: 2;
}

.ai-timeline-item:last-child { margin-bottom: 0; }

.ai-timeline-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ai-soft);
    border: 3px solid var(--ai-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 0 4px #fff;
    box-sizing: border-box;
    margin-top: 6px;
    position: relative;
    z-index: 3;
}

.ai-timeline-card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--ai-border);
    box-shadow: 0 2px 8px rgba(15,37,71,.06);
}

.ai-timeline-text {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.9;
}

/* ═══════════════════════════════════════════════════════════
   4. CARD B — کارت با نوار رنگی کناری
   ═══════════════════════════════════════════════════════════ */
.ai-card-side {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

.ai-card-side-bar { flex-shrink: 0; width: 5px; background: var(--ai-main); }

.ai-card-side-body { flex: 1; padding: 18px 20px; min-width: 0; }

.ai-card-side-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-card-side-icon { font-size: 16px; line-height: 1; }

.ai-card-side-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ai-dark);
    letter-spacing: -.2px;
}

.ai-card-side-text {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.95;
}

/* ═══════════════════════════════════════════════════════════
   5. CARD C — کارت شیشه‌ای گرادیانتی
   ═══════════════════════════════════════════════════════════ */
.ai-card-glass {
    position: relative;
    background: linear-gradient(135deg, var(--ai-soft) 0%, var(--ai-border) 100%);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 8px 24px rgba(15,37,71,.07);
    overflow: hidden;
}

.ai-card-glass-dot {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ai-main);
    box-shadow: 0 0 0 4px var(--ai-shadow);
}

.ai-card-glass-body { position: relative; }

.ai-card-glass-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-card-glass-icon { font-size: 18px; line-height: 1; }

.ai-card-glass-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ai-dark);
}

.ai-card-glass-text {
    margin: 0;
    color: #1e293b;
    font-size: 14.5px;
    line-height: 2;
}

/* ═══════════════════════════════════════════════════════════
   6. CARD D — کارت با شماره‌ی بزرگ
   ═══════════════════════════════════════════════════════════ */
.ai-card-number {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.ai-card-number-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ai-main), var(--ai-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 4px 12px var(--ai-shadow);
    line-height: 1;
    box-sizing: border-box;
}

.ai-card-number-body { flex: 1; padding-top: 6px; min-width: 0; }

.ai-card-number-text {
    margin: 0;
    color: #334155;
    font-size: 14.5px;
    line-height: 1.95;
}

/* ═══════════════════════════════════════════════════════════
   7. TABLE WRAPPER
   ═══════════════════════════════════════════════════════════ */
.ai-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 14px;
}

.ai-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

/* ═══════════════════════════════════════════════════════════
   8. KEYWORD
   ═══════════════════════════════════════════════════════════ */
.ai-content strong,
.ai-content b { font-weight: 700; color: #0f172a; }

/* ═══════════════════════════════════════════════════════════
   9. RESPONSIVE — A/B/C/D
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .ai-timeline-icon { width: 34px; height: 34px; font-size: 15px; }
    .ai-timeline-line { right: 16px; }
    .ai-timeline-item { gap: 12px; margin-bottom: 12px; }
    .ai-card-glass { padding: 18px 18px; }
    .ai-card-side-body { padding: 15px 16px; }
    .ai-card-number { padding: 16px 18px; gap: 12px; }
    .ai-card-number-badge { width: 44px; height: 44px; font-size: 20px; border-radius: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   STYLE E — BENEFITS CAROUSEL (کاروسل مزایا)
   ═══════════════════════════════════════════════════════════ */
.ai-benefits-section {
    width: 100%;
    margin: 24px auto;
    padding: 24px 0 25px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 28px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.ai-benefits-header { text-align: center; padding: 0 18px; box-sizing: border-box; }

.ai-benefits-eyebrow {
    font-size: 12px;
    color: #d71920;
    font-weight: 800;
    margin-bottom: 3px;
}

.ai-benefits-title {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.8;
    color: #171717;
    margin: 0;
}

.ai-benefits-subtitle {
    font-size: 13px;
    color: #888;
    line-height: 1.9;
    margin-top: 2px;
}

.ai-benefits-slider {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    direction: rtl;
    box-sizing: border-box;
}

.ai-benefits-stage {
    width: 100%;
    height: 290px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    box-sizing: border-box;
}

.ai-benefits-slider.ai-js-ready .ai-benefits-stage {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 2%, rgba(0,0,0,.22) 4%, rgba(0,0,0,.48) 7%, rgba(0,0,0,.75) 10%, #000 15%, #000 85%, rgba(0,0,0,.75) 90%, rgba(0,0,0,.48) 93%, rgba(0,0,0,.22) 96%, rgba(0,0,0,.08) 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 2%, rgba(0,0,0,.22) 4%, rgba(0,0,0,.48) 7%, rgba(0,0,0,.75) 10%, #000 15%, #000 85%, rgba(0,0,0,.75) 90%, rgba(0,0,0,.48) 93%, rgba(0,0,0,.22) 96%, rgba(0,0,0,.08) 98%, transparent 100%);
}

/* حالت پایه کارت (قبل از JS) */
.ai-benefit-card {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 68%;
    max-width: 520px;
    height: 215px;
    padding: 42px 30px 27px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    box-shadow: none;
    transition: transform 0.62s cubic-bezier(0.22,0.8,0.2,1), opacity 0.45s, box-shadow 0.45s;
}

/* حالت بدون JS: فقط کارت اول نمایش، بقیه مخفی */
.ai-benefits-slider:not(.ai-js-ready) .ai-benefit-card { display: none; }

.ai-benefits-slider:not(.ai-js-ready) .ai-benefit-card:first-child {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    margin: 24px auto 0;
}

/* حالت با JS: کارت‌ها مخفی و آماده انیمیشن */
.ai-benefits-slider.ai-js-ready .ai-benefit-card {
    opacity: 0;
    transform: translateX(26%) scale(0.73);
}

.ai-benefit-number {
    position: absolute;
    top: 17px;
    right: 27px;
    font-size: 22px;
    font-weight: 900;
    color: #d71920;
    line-height: 1;
}

.ai-benefit-tag {
    font-size: 11px;
    font-weight: 800;
    color: #d71920;
    margin-bottom: 5px;
}

.ai-benefit-title {
    font-size: 22px;
    font-weight: 900;
    color: #151515;
    line-height: 1.7;
    margin: 0 0 5px;
}

.ai-benefit-desc {
    font-size: 14px;
    line-height: 2;
    color: #666;
    margin: 0;
}

.ai-benefit-accent {
    position: absolute;
    right: 30px;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: #d71920;
    border-radius: 10px 10px 0 0;
}

.ai-benefits-fade {
    position: relative;
    margin-top: -60px;
    padding-top: 60px;
    padding-bottom: 3px;
    background: linear-gradient(to bottom,
        rgba(250,250,250,0) 0%,
        rgba(250,250,250,.08) 18%,
        rgba(250,250,250,.25) 38%,
        rgba(250,250,250,.58) 62%,
        rgba(250,250,250,.88) 82%,
        #fafafa 100%);
    z-index: 15;
    pointer-events: none;
}

.ai-benefits-slider:not(.ai-js-ready) .ai-benefits-fade { display: none; }

.ai-benefits-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    direction: rtl;
    position: relative;
    pointer-events: auto;
}

.ai-benefits-dots span {
    display: block;
    width: 6px;
    height: 4px;
    border-radius: 10px;
    background: #dddddd;
    transition: 0.3s;
    cursor: pointer;
}

@media (max-width: 640px) {
    .ai-benefits-section { padding: 18px 0 20px; border-radius: 20px; margin: 16px auto; }
    .ai-benefits-title { font-size: 19px; }
    .ai-benefits-subtitle { font-size: 12px; }
    .ai-benefits-stage { height: 260px; }
    .ai-benefit-card { width: 80%; height: 195px; padding: 38px 22px 22px; }
    .ai-benefit-title { font-size: 19px; }
    .ai-benefit-desc { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   STYLE F — HERO TL;DR
   ═══════════════════════════════════════════════════════════ */
.ai-hero-tldr {
    position: relative;
    margin: 0 0 28px 0;
    padding: 36px 32px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #312e81 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30,58,138,.25), 0 4px 12px rgba(30,58,138,.15);
    isolation: isolate;
}

.ai-hero-tldr::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: ai-hero-float 8s ease-in-out infinite;
}

.ai-hero-tldr::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: ai-hero-float 10s ease-in-out infinite reverse;
}

@keyframes ai-hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

.ai-hero-tldr-header { position: relative; z-index: 2; margin-bottom: 24px; }

.ai-hero-tldr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.ai-hero-tldr-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.5;
    color: #fff;
    letter-spacing: -.3px;
}

.ai-hero-tldr-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.ai-hero-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    transition: all .3s ease;
}

.ai-hero-stat:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.3);
}

.ai-hero-stat-value {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.ai-hero-stat-value small {
    font-size: 18px;
    font-weight: 700;
    opacity: .85;
    margin-right: 2px;
}

.ai-hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    font-weight: 600;
    line-height: 1.5;
}

.ai-hero-tldr-summary {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 18px 20px;
    background: rgba(255,255,255,.06);
    border-right: 3px solid rgba(168,85,247,.9);
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 2;
    color: rgba(255,255,255,.92);
}

.ai-hero-tldr.ai-hero-purple {
    background: linear-gradient(135deg, #581c87 0%, #6b21a8 50%, #4c1d95 100%);
    box-shadow: 0 20px 50px rgba(107,33,168,.25), 0 4px 12px rgba(107,33,168,.15);
}

.ai-hero-tldr.ai-hero-emerald {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0f766e 100%);
    box-shadow: 0 20px 50px rgba(4,120,87,.25), 0 4px 12px rgba(4,120,87,.15);
}

.ai-hero-tldr.ai-hero-crimson {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #831843 100%);
    box-shadow: 0 20px 50px rgba(185,28,28,.25), 0 4px 12px rgba(185,28,28,.15);
}

/* ═══════════════════════════════════════════════════════════
   STYLE G — HIGHLIGHTS GRID
   ═══════════════════════════════════════════════════════════ */
.ai-highlights {
    position: relative;
    margin: 0 0 28px 0;
    padding: 28px 24px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15,37,71,.06);
}

.ai-highlights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
}

.ai-highlights-icon {
    font-size: 26px;
    line-height: 1;
    animation: ai-hl-spin 8s linear infinite;
    display: inline-block;
}

@keyframes ai-hl-spin {
    0%, 85%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(15deg); }
    95% { transform: rotate(-15deg); }
}

.ai-highlights-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.5;
    letter-spacing: -.2px;
}

.ai-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ai-highlight-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
    cursor: default;
}

/* حالت با JS: کارت‌ها مخفی و آماده انیمیشن */
.ai-highlights.ai-js-ready .ai-highlight-card {
    opacity: 0;
    transform: translateY(20px);
}

.ai-highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--hl-color, #3b82f6);
    transition: width .35s ease;
}

.ai-highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--hl-color, #3b82f6);
    box-shadow: 0 12px 28px rgba(15,37,71,.1);
}

.ai-highlight-card:hover::before { width: 5px; }

.ai-highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--hl-soft, #eff6ff);
    box-sizing: border-box;
    transition: transform .35s ease;
}

.ai-highlight-card:hover .ai-highlight-icon { transform: scale(1.1) rotate(-6deg); }

.ai-highlight-text {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.75;
}

.ai-highlight-blue   { --hl-color: #3b82f6; --hl-soft: #eff6ff; }
.ai-highlight-green  { --hl-color: #22c55e; --hl-soft: #f0fdf4; }
.ai-highlight-purple { --hl-color: #a855f7; --hl-soft: #faf5ff; }
.ai-highlight-orange { --hl-color: #f59e0b; --hl-soft: #fffbeb; }
.ai-highlight-red    { --hl-color: #ef4444; --hl-soft: #fef2f2; }
.ai-highlight-teal   { --hl-color: #14b8a6; --hl-soft: #f0fdfa; }

.ai-highlight-card.ai-anim-in {
    animation: ai-hl-fade-in .6s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes ai-hl-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   STYLE H — FEATURE CARDS GRID
   ═══════════════════════════════════════════════════════════ */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(var(--ai-fg-cols, 3), minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 26px 0;
    padding: 0;
    list-style: none;
}

.ai-features-grid.ai-fg-cols-2 { --ai-fg-cols: 2; }
.ai-features-grid.ai-fg-cols-3 { --ai-fg-cols: 3; }
.ai-features-grid.ai-fg-cols-4 { --ai-fg-cols: 4; }

.ai-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-sizing: border-box;
    overflow: hidden;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
    isolation: isolate;
}

/* حالت با JS: کارت‌ها مخفی و آماده انیمیشن */
.ai-features-grid.ai-js-ready .ai-feature-card {
    opacity: 0;
    transform: translateY(24px) scale(.96);
}

.ai-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--fc-soft, #eff6ff) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: -1;
}

.ai-feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, var(--fc-color, #3b82f6) 0%, transparent 70%);
    opacity: .12;
    transition: opacity .4s ease, transform .4s ease;
    transform: scale(1);
    border-radius: 0 18px 0 100%;
}

.ai-feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--fc-color, #3b82f6);
    box-shadow: 0 16px 40px var(--fc-shadow, rgba(59,130,246,.18)),
                0 4px 12px rgba(15,37,71,.06);
}

.ai-feature-card:hover::before { opacity: 1; }
.ai-feature-card:hover::after { opacity: .28; transform: scale(1.4); }

.ai-feature-icon {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--fc-soft, #eff6ff);
    border: 1px solid var(--fc-border, #dbeafe);
    box-sizing: border-box;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
    flex-shrink: 0;
}

.ai-feature-card:hover .ai-feature-icon {
    transform: scale(1.08) rotate(-6deg);
    background: var(--fc-color, #3b82f6);
    color: #fff;
    border-color: var(--fc-color, #3b82f6);
    box-shadow: 0 8px 20px var(--fc-shadow, rgba(59,130,246,.35));
}

.ai-feature-title {
    margin: 0 0 8px 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #111827;
    line-height: 1.5;
    letter-spacing: -.2px;
}

.ai-feature-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: #64748b;
    font-weight: 500;
    flex: 1;
}

.ai-feature-num {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 800;
    color: var(--fc-color, #3b82f6);
    background: var(--fc-soft, #eff6ff);
    padding: 3px 9px;
    border-radius: 100px;
    opacity: .85;
    letter-spacing: .5px;
}

.ai-feature-blue   { --fc-color: #3b82f6; --fc-soft: #eff6ff; --fc-border: #dbeafe; --fc-shadow: rgba(59,130,246,.28); }
.ai-feature-green  { --fc-color: #22c55e; --fc-soft: #f0fdf4; --fc-border: #dcfce7; --fc-shadow: rgba(34,197,94,.28); }
.ai-feature-purple { --fc-color: #a855f7; --fc-soft: #faf5ff; --fc-border: #f3e8ff; --fc-shadow: rgba(168,85,247,.28); }
.ai-feature-orange { --fc-color: #f59e0b; --fc-soft: #fffbeb; --fc-border: #fef3c7; --fc-shadow: rgba(245,158,11,.28); }
.ai-feature-red    { --fc-color: #ef4444; --fc-soft: #fef2f2; --fc-border: #fee2e2; --fc-shadow: rgba(239,68,68,.28); }
.ai-feature-teal   { --fc-color: #14b8a6; --fc-soft: #f0fdfa; --fc-border: #ccfbf1; --fc-shadow: rgba(20,184,166,.28); }
.ai-feature-indigo { --fc-color: #6366f1; --fc-soft: #eef2ff; --fc-border: #e0e7ff; --fc-shadow: rgba(99,102,241,.28); }
.ai-feature-pink   { --fc-color: #ec4899; --fc-soft: #fdf2f8; --fc-border: #fce7f3; --fc-shadow: rgba(236,72,153,.28); }

.ai-feature-card.ai-fc-in {
    animation: ai-fc-fade-up .65s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes ai-fc-fade-up {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — F/G/H
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .ai-features-grid.ai-fg-cols-4 { --ai-fg-cols: 2; }
}

@media (max-width: 640px) {
    .ai-hero-tldr { padding: 26px 20px 22px; border-radius: 18px; margin-bottom: 20px; }
    .ai-hero-tldr-title { font-size: 20px; }
    .ai-hero-tldr-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ai-hero-stat { padding: 14px 8px; border-radius: 12px; }
    .ai-hero-stat-value { font-size: 26px; }
    .ai-hero-stat-label { font-size: 10.5px; }
    .ai-hero-tldr-summary { font-size: 13px; padding: 14px 16px; }

    .ai-highlights { padding: 22px 18px 18px; border-radius: 16px; }
    .ai-highlights-title { font-size: 17px; }
    .ai-highlights-grid { grid-template-columns: 1fr; gap: 10px; }
    .ai-highlight-card { padding: 14px 15px; }

    .ai-features-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 20px 0; }
    .ai-feature-card { padding: 20px 18px; border-radius: 14px; }
    .ai-feature-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 12px; }
    .ai-feature-title { font-size: 15px; }
    .ai-feature-text { font-size: 13px; }
}














/* ============================================================
   📑 Tab System (سیستم تب‌های پیشرفته با قابلیت تغییر رنگ و چینش)
   ============================================================ */
.custom-tab-wrapper {
    /* متغیرهای پیش‌فرض */
    --tab-align: center; /* برای راست‌چین: flex-start | وسط‌چین: center | چپ‌چین: flex-end */
    --tab-active-color: #c0392b;
    --tab-active-border: #c0392b;
    --tab-inactive-color: #666666;
    --tab-hover-bg: rgba(0, 0, 0, 0.03);
    /* متغیرهای جدید برای رنگ پس‌زمینه و حاشیه */
    --tab-bg-color: #ffffff;
    --tab-border-color: #e0e0e0;
    margin: 30px 0;
    border-radius: 12px;
    background: var(--tab-bg-color);
    font-family: inherit;
    direction: rtl;
}

/* پایه مشترک هدرها و دکمه‌ها */
.custom-tab-headers {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 20px;
    justify-content: var(--tab-align);
}

.custom-tab-btn {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    color: var(--tab-inactive-color);
}

    .custom-tab-btn:hover {
        background: var(--tab-hover-bg);
        color: var(--tab-active-color);
    }

.custom-tab-contents {
    position: relative;
    background: var(--tab-bg-color);
}

.custom-tab-pane {
    display: none;
    animation: tabFadeIn 0.4s ease;
    min-height: 20px; /* جلوگیری از پاک شدن محتوا توسط ادیتور */
}

    .custom-tab-pane.active {
        display: block;
    }

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------
   استایل ۱: خطی (شبیه عکس - Classic Line)
   ------------------------------------------------------------ */
.custom-tab-wrapper.style-classic-line {
    border: none;
}

    .custom-tab-wrapper.style-classic-line .custom-tab-headers {
        border-bottom: 2px solid var(--tab-border-color);
        gap: 20px;
    }

    .custom-tab-wrapper.style-classic-line .custom-tab-btn {
        font-size: 22px;
        font-weight: bold;
        padding: 10px 20px;
        border-bottom: 4px solid transparent;
        margin-bottom: -2px;
        box-sizing:border-box;
    }

        .custom-tab-wrapper.style-classic-line .custom-tab-btn.active {
            color: var(--tab-active-color);
            border-bottom-color: var(--tab-active-border);
        }

/* ------------------------------------------------------------
   استایل ۲: قرصی/دکمه‌ای (Pills)
   ------------------------------------------------------------ */
.custom-tab-wrapper.style-pills {
    border: none;
}

    .custom-tab-wrapper.style-pills .custom-tab-headers {
        gap: 10px;
        border-bottom: none;
        margin-bottom: 15px;
    }

    .custom-tab-wrapper.style-pills .custom-tab-btn {
        font-size: 15px;
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 30px;
        background: #f1f3f5;
        color: var(--tab-inactive-color);
    }

        .custom-tab-wrapper.style-pills .custom-tab-btn.active {
            background: var(--tab-active-border);
            color: #fff;
            box-shadow: 0 4px 10px rgba(0,0,0, 0.15);
        }

/* ------------------------------------------------------------
   استایل ۳: جعبه‌ای (Boxed)
   ------------------------------------------------------------ */
.custom-tab-wrapper.style-boxed {
    border: none;
}

    .custom-tab-wrapper.style-boxed .custom-tab-headers {
        padding-right: 10px;
        gap: 5px;
        border-bottom: 2px solid var(--tab-border-color);
        margin-bottom: 0;
    }

    .custom-tab-wrapper.style-boxed .custom-tab-btn {
        font-size: 15px;
        font-weight: bold;
        padding: 12px 25px;
        background: #f8f9fa;
        border: 1px solid var(--tab-border-color);
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        margin-bottom: -2px;
    }

        .custom-tab-wrapper.style-boxed .custom-tab-btn.active {
            background: var(--tab-bg-color);
            color: var(--tab-active-color);
            border-top: 3px solid var(--tab-active-border);
            border-bottom: 2px solid var(--tab-bg-color);
            z-index: 2;
            position: relative;
        }

    .custom-tab-wrapper.style-boxed .custom-tab-contents {
        border: 1px solid var(--tab-border-color);
        border-top: none;
        padding: 20px;
        border-radius: 0 0 8px 8px;
    }

/* ------------------------------------------------------------
   استایل ۴: نرم (Soft / Segmented)
   ------------------------------------------------------------ */
.custom-tab-wrapper.style-soft {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 16px;
}

    .custom-tab-wrapper.style-soft .custom-tab-headers {
        background: #e9ecef;
        padding: 6px;
        border-radius: 12px;
        display: inline-flex;
        margin-bottom: 15px;
        border-bottom: none;
    }

    .custom-tab-wrapper.style-soft .custom-tab-btn {
        font-size: 14px;
        font-weight: bold;
        padding: 8px 24px;
        border-radius: 8px;
        background: transparent;
    }

        .custom-tab-wrapper.style-soft .custom-tab-btn.active {
            background: var(--tab-bg-color);
            color: var(--tab-active-color);
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

    .custom-tab-wrapper.style-soft .custom-tab-contents {
        background: var(--tab-bg-color);
        padding: 20px;
        border-radius: 12px;
    }

/* ریسپانسیو موبایل */
@media (max-width: 600px) {
    .custom-tab-headers {
        flex-direction: column;
        gap: 5px !important;
    }

    .custom-tab-btn {
        text-align: center;
        width: 100%;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .custom-tab-wrapper.style-classic-line .custom-tab-btn {
        border-bottom: 1px solid var(--tab-border-color);
        border-right: 4px solid transparent;
    }

        .custom-tab-wrapper.style-classic-line .custom-tab-btn.active {
            border-bottom-color: var(--tab-border-color);
            border-right-color: var(--tab-active-border);
        }

    .custom-tab-wrapper.style-boxed .custom-tab-btn {
        border-radius: 8px;
        border: 1px solid var(--tab-border-color);
    }

    .custom-tab-wrapper.style-boxed .custom-tab-contents {
        border: 1px solid var(--tab-border-color);
        border-radius: 8px;
    }
}























/* ═══════════════════════════════════════════════════════════
   ARTICLE SECTIONS — فروش اقساطی بنز A180L
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. ARTICLE HERO ──────────────────────────────────────── */
.ai-article-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #b70d16 0%, #dc151e 32%, #c81019 68%, #ed1c24 100%);
    border-radius: 30px;
    padding: 35px 31px 34px;
    margin: 0 0 17px;
    box-shadow: 0 18px 42px rgba(190, 10, 20, .2);
}

.ai-article-hero-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    pointer-events: none;
}

.ai-article-hero-ring-1 {
    left: -70px;
    top: -95px;
    width: 230px;
    height: 230px;
}

.ai-article-hero-ring-2 {
    left: 18px;
    top: 22px;
    width: 115px;
    height: 115px;
    border-color: rgba(255, 255, 255, .10);
}

.ai-article-hero-inner {
    position: relative;
    z-index: 2;
}

.ai-article-hero-badge {
    display: inline-block;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 30px;
    color: #ffe8e9;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 11px;
}

.ai-article-hero-title {
    max-width: 930px;
    color: #fff;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 900;
    line-height: 1.8;
    margin: 0 0 9px;
    text-align: right;
}

    .ai-article-hero-title a {
        color: #fff;
        text-decoration: none;
    }

.ai-article-hero-subtitle {
    max-width: 850px;
    color: rgba(255, 255, 255, .94);
    font-size: 13px;
    line-height: 2.15;
    text-align: right;
}

/* ─── 2. STATS CARDS ──────────────────────────────────────── */
.ai-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.ai-stat-card {
    flex: 1 1 155px;
    min-width: 0;
    box-sizing: border-box;
    background: linear-gradient(145deg, #171717, #242424);
    border: 1px solid #292929;
    border-radius: 18px;
    padding: 16px 10px;
    text-align: center;
}

.ai-stat-value {
    color: #fff;
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 900;
    line-height: 1.7;
}

.ai-stat-label {
    color: #b9b9b9;
    font-size: 10px;
    margin-top: 5px;
    line-height: 1.8;
}

/* ─── 3. NUMBERED SECTION ─────────────────────────────────── */
.ai-numbered-section {
    scroll-margin-top: 120px;
    margin: 0 0 23px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .045);
}

.ai-numbered-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 22px;
    background: linear-gradient(90deg, #ffffff 0%, #fff4f5 100%);
    border-bottom: 1px solid #f0f0f0;
}

.ai-numbered-badge {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b70d16, #ed1c24);
    color: #fff;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(215, 25, 32, .2);
}

.ai-numbered-title {
    margin: 0;
    color: #151515;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 900;
    line-height: 1.9;
    text-align: right;
}

.ai-numbered-body {
    padding: 23px 25px 25px;
}

    .ai-numbered-body p {
        margin: 0 0 16px;
        font-size: 14px;
        line-height: 2.4;
        color: #171717;
        text-align: justify;
        text-align-last: right;
    }

/* ─── 4. CTA BANNER (قرمز/تیره) ────────────────────────────── */
.ai-cta-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 23px;
    padding: clamp(23px, 3.4vw, 39px);
    border-radius: 29px;
    color: #fff;
    text-align: right;
}

    .ai-cta-banner.ai-cta-red {
        background: linear-gradient(123deg, #9c0615 0%, #c40a1e 40%, #eb172b 77%, #ff4051 100%);
        border: 1px solid #d92538;
        box-shadow: 0 20px 44px rgba(171, 9, 30, .21);
    }

        .ai-cta-banner.ai-cta-red::before {
            content: "";
            position: absolute;
            left: -78px;
            top: -128px;
            width: 310px;
            height: 310px;
            border: 1px solid rgba(255, 255, 255, .19);
            border-radius: 50%;
            pointer-events: none;
        }

        .ai-cta-banner.ai-cta-red::after {
            content: "";
            position: absolute;
            left: -13px;
            top: -53px;
            width: 200px;
            height: 200px;
            border: 1px solid rgba(255, 255, 255, .14);
            border-radius: 50%;
            pointer-events: none;
        }

    .ai-cta-banner.ai-cta-dark {
        background: linear-gradient(135deg, #151515 0%, #2a2a2a 100%);
        border: none;
        border-radius: 27px;
        padding: 28px 27px;
        margin-top: 28px;
    }

.ai-cta-inner {
    position: relative;
    z-index: 1;
}

.ai-cta-badge {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .10);
    border-radius: 99px;
    color: #fff3f4;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.9;
}

.ai-cta-title {
    margin: 11px 0 9px;
    color: #ffffff;
    font-size: clamp(25px, 3.1vw, 38px);
    font-weight: 900;
    line-height: 1.65;
    text-align: right;
}

.ai-cta-banner.ai-cta-dark .ai-cta-title {
    font-size: 21px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.ai-cta-text {
    max-width: 670px;
    margin: 0 0 20px;
    color: #fff0f1;
    font-size: clamp(12px, 1.28vw, 14px);
    line-height: 2.35;
    text-align: right;
}

.ai-cta-banner.ai-cta-dark .ai-cta-text {
    color: #c5c5c5;
    font-size: 12px;
    line-height: 2.15;
    margin-bottom: 16px;
}

.ai-cta-btn {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px 19px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 15px;
    background: #fff;
    color: #b4081b;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 900;
    line-height: 1.9;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(87, 0, 13, .18);
    cursor: pointer;
}

.ai-cta-banner.ai-cta-dark .ai-cta-btn {
    background: linear-gradient(135deg, #b70d16, #ed1c24);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 19px;
    font-size: 12px;
    box-shadow: none;
}

/* ─── 5. TOC NAV ──────────────────────────────────────────── */
.ai-toc-nav {
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 26px;
    padding: 22px 19px;
    margin: 0 0 25px;
}

.ai-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-toc-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 13px;
    background: #d71920;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 900;
}

.ai-toc-title {
    font-size: 18px;
    font-weight: 900;
    color: #161616;
}

.ai-toc-subtitle {
    font-size: 10px;
    color: #777;
    margin-top: 4px;
}

.ai-toc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-toc-btn {
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 275px;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 13px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    color: #222;
    text-align: right;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .025);
    text-decoration: none;
}

.ai-toc-num {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f1;
    color: #d71920;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

.ai-toc-btn-text {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.9;
    overflow-wrap: break-word;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .ai-article-hero {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .ai-article-hero-title {
        font-size: 20px;
    }

    .ai-numbered-header {
        padding: 15px 16px;
        gap: 10px;
    }

    .ai-numbered-badge {
        width: 38px;
        height: 38px;
        font-size: 11px;
    }

    .ai-numbered-body {
        padding: 18px 18px 20px;
    }

    .ai-cta-banner {
        border-radius: 22px;
        padding: 22px 20px;
    }

    .ai-toc-nav {
        padding: 16px 14px;
        border-radius: 20px;
    }
}
/* Image galleries generated by image-gallery.js. Keep preset values in sync with that file. */
.image-gallery-wrapper.image-gallery-styled {
    --ig-box-min-width: 200px;
    --ig-box-max-width: 25%;
    --ig-box-bg-color: #f5f5f5;
    --ig-box-border: none;
    --ig-box-border-radius: 12px;
    --ig-box-padding: 0px;
    --ig-box-gap: 20px;
    --ig-image-width: 100%;
    --ig-image-height: auto;
    --ig-image-bg-color: transparent;
    --ig-image-border: none;
    --ig-image-border-radius: 10px 10px 0 0;
    --ig-image-object-fit: cover;
    --ig-title-bg-color: #ffffff;
    --ig-title-color: #333333;
    --ig-title-border: none;
    --ig-title-border-radius: 0 0 10px 10px;
    --ig-title-padding: 10px 8px;
    --ig-title-margin-top: 0px;
    --ig-title-font-size: 14px;
    --ig-title-font-weight: 600;
    --ig-title-min-height: 40px;
    --ig-desc-bg-color: transparent;
    --ig-desc-color: #666666;
    --ig-desc-border: none;
    --ig-desc-border-radius: 0 0 10px 10px;
    --ig-desc-padding: 5px 8px;
    --ig-desc-margin-top: 0px;
    --ig-desc-font-size: 12px;
    --ig-desc-font-weight: 400;
    --ig-desc-min-height: 20px;
    width: 100%; box-sizing: border-box;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="icon-circle"] {
    --ig-box-min-width: 140px;
    --ig-box-max-width: 18%;
    --ig-box-bg-color: transparent;
    --ig-box-padding: 15px 8px;
    --ig-box-gap: 16px;
    --ig-image-width: 90px;
    --ig-image-height: 90px;
    --ig-image-border: 3px solid #ffffff;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #0066cc;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 4px 2px;
    --ig-title-margin-top: 8px;
    --ig-title-font-size: 13px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-color: #888888;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 4px;
    --ig-desc-margin-top: 2px;
    --ig-desc-font-size: 11px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="shadow-card"] {
    --ig-box-min-width: 240px;
    --ig-box-max-width: 28%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border-radius: 20px;
    --ig-box-gap: 24px;
    --ig-image-border-radius: 20px 20px 0 0;
    --ig-title-color: #1a1a1a;
    --ig-title-border-radius: 0;
    --ig-title-padding: 14px 12px 6px;
    --ig-title-font-size: 16px;
    --ig-title-font-weight: 800;
    --ig-title-min-height: 35px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-border-radius: 0 0 20px 20px;
    --ig-desc-padding: 0 12px 18px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="horizontal-badge"] {
    --ig-box-min-width: 180px;
    --ig-box-max-width: 20%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #e5e5e5;
    --ig-box-border-radius: 10px;
    --ig-box-padding: 10px;
    --ig-box-gap: 12px;
    --ig-image-width: 80px;
    --ig-image-border-radius: 8px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #222;
    --ig-title-border-radius: 0;
    --ig-title-padding: 0 0 4px;
    --ig-title-font-size: 13px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 20px;
    --ig-desc-color: #888;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0;
    --ig-desc-font-size: 11px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="article-large"] {
    --ig-box-min-width: 280px;
    --ig-box-max-width: 32%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border-radius: 14px;
    --ig-box-gap: 30px;
    --ig-image-border-radius: 14px 14px 0 0;
    --ig-title-color: #0d0d0d;
    --ig-title-border-radius: 0;
    --ig-title-padding: 18px 16px 8px;
    --ig-title-font-size: 19px;
    --ig-title-font-weight: 800;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #666;
    --ig-desc-border-radius: 0 0 14px 14px;
    --ig-desc-padding: 0 16px 18px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 45px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="minimal-bare"] {
    --ig-box-max-width: 24%;
    --ig-box-bg-color: transparent;
    --ig-box-border-radius: 0px;
    --ig-box-gap: 22px;
    --ig-image-border-radius: 6px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #000000;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 0 2px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 25px;
    --ig-desc-color: #777777;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="glass"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #f0f4f8;
    --ig-box-border: 2px solid #ffffff;
    --ig-box-border-radius: 18px;
    --ig-image-border-radius: 16px 16px 0 0;
    --ig-title-bg-color: transparent;
    --ig-title-color: #1e3a5f;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 10px 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-color: #5a7a99;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 10px 12px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="gradient-border"] {
    --ig-box-min-width: 230px;
    --ig-box-max-width: 27%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 3px solid #ff6b9d;
    --ig-box-border-radius: 16px;
    --ig-box-gap: 22px;
    --ig-image-border-radius: 13px 13px 0 0;
    --ig-title-color: #ff4757;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 10px 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 800;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #666;
    --ig-desc-border-radius: 0 0 13px 13px;
    --ig-desc-padding: 0 10px 14px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="team-profile"] {
    --ig-box-min-width: 180px;
    --ig-box-max-width: 22%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #eaeaea;
    --ig-box-border-radius: 16px;
    --ig-box-padding: 20px 12px;
    --ig-image-width: 130px;
    --ig-image-height: 130px;
    --ig-image-border: 4px solid #f0f0f0;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #1a1a1a;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 0 2px;
    --ig-title-margin-top: 8px;
    --ig-title-font-size: 16px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-color: #0066cc;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0;
    --ig-desc-font-weight: 500;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="cinematic"] {
    --ig-box-min-width: 300px;
    --ig-box-max-width: 45%;
    --ig-box-bg-color: #000000;
    --ig-box-gap: 24px;
    --ig-image-border-radius: 12px 12px 0 0;
    --ig-title-bg-color: rgba(0,0,0,0.85);
    --ig-title-color: #ffffff;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 14px 4px;
    --ig-title-margin-top: -70px;
    --ig-title-font-size: 17px;
    --ig-title-font-weight: 800;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: rgba(0,0,0,0.85);
    --ig-desc-color: #cccccc;
    --ig-desc-border-radius: 0 0 12px 12px;
    --ig-desc-padding: 0 14px 14px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="compact-card"] {
    --ig-box-min-width: 150px;
    --ig-box-max-width: 18%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #ededed;
    --ig-box-border-radius: 8px;
    --ig-box-gap: 12px;
    --ig-image-border-radius: 8px 8px 0 0;
    --ig-title-color: #333;
    --ig-title-border-radius: 0;
    --ig-title-padding: 8px 6px 3px;
    --ig-title-font-size: 13px;
    --ig-title-min-height: 25px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #999;
    --ig-desc-border-radius: 0 0 8px 8px;
    --ig-desc-padding: 0 6px 8px;
    --ig-desc-font-size: 11px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="picture-frame"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 8px solid #ffffff;
    --ig-box-border-radius: 4px;
    --ig-box-gap: 26px;
    --ig-image-border: 1px solid #d0d0d0;
    --ig-image-border-radius: 0px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #2c2c2c;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 6px 2px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 25px;
    --ig-desc-color: #777;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 6px 8px;
    --ig-desc-font-size: 11px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="luxury-gold"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #0a0a0a;
    --ig-box-border: 1px solid #c9a227;
    --ig-box-border-radius: 8px;
    --ig-box-gap: 24px;
    --ig-image-border-radius: 7px 7px 0 0;
    --ig-title-bg-color: #0a0a0a;
    --ig-title-color: #c9a227;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 10px 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #0a0a0a;
    --ig-desc-color: #a8a8a8;
    --ig-desc-border-radius: 0 0 7px 7px;
    --ig-desc-padding: 0 10px 14px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-shop"] {
    --ig-box-min-width: 230px;
    --ig-box-max-width: 27%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #e8e8e8;
    --ig-box-gap: 22px;
    --ig-image-border-radius: 11px 11px 0 0;
    --ig-title-color: #1a1a1a;
    --ig-title-border-radius: 0;
    --ig-title-padding: 14px 12px 6px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 35px;
    --ig-desc-bg-color: #28a745;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 6px;
    --ig-desc-padding: 10px 12px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="big-circle"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 28%;
    --ig-box-bg-color: transparent;
    --ig-box-padding: 10px;
    --ig-box-gap: 26px;
    --ig-image-width: 200px;
    --ig-image-height: 200px;
    --ig-image-border: 5px solid #f0f0f0;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #222222;
    --ig-title-border-radius: 0;
    --ig-title-padding: 18px 4px 4px;
    --ig-title-margin-top: 10px;
    --ig-title-font-size: 17px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-color: #777777;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 8px;
    --ig-desc-margin-top: 2px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 25px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="circle-gray-box"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 28%;
    --ig-box-bg-color: transparent;
    --ig-box-padding: 10px;
    --ig-box-gap: 24px;
    --ig-image-width: 140px;
    --ig-image-height: 140px;
    --ig-image-border: 4px solid #ffffff;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: #f0f0f0;
    --ig-title-color: #222222;
    --ig-title-border-radius: 10px 10px 0 0;
    --ig-title-padding: 14px 12px 6px;
    --ig-title-margin-top: 12px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #f0f0f0;
    --ig-desc-padding: 0 12px 14px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-modern"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #e0e0e0;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 16px;
    --ig-box-gap: 22px;
    --ig-image-width: 140px;
    --ig-image-border: 3px solid #e8f0ff;
    --ig-image-border-radius: 14px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #0066cc;
    --ig-title-border-radius: 0;
    --ig-title-padding: 14px 4px 6px;
    --ig-title-margin-top: 6px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #0066cc;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 600;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-luxury"] {
    --ig-box-min-width: 250px;
    --ig-box-max-width: 30%;
    --ig-box-bg-color: #1a1a1a;
    --ig-box-border: 1px solid #c9a227;
    --ig-box-border-radius: 14px;
    --ig-box-gap: 26px;
    --ig-image-border-radius: 13px 13px 0 0;
    --ig-title-bg-color: #1a1a1a;
    --ig-title-color: #c9a227;
    --ig-title-border-radius: 0;
    --ig-title-padding: 16px 14px 6px;
    --ig-title-font-size: 16px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 35px;
    --ig-desc-bg-color: #c9a227;
    --ig-desc-color: #1a1a1a;
    --ig-desc-border-radius: 0 0 13px 13px;
    --ig-desc-padding: 11px 14px;
    --ig-desc-margin-top: 6px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 800;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-green"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #f0fff4;
    --ig-box-border: 1px solid #b7e4c7;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 14px;
    --ig-box-gap: 22px;
    --ig-image-border: 2px solid #ffffff;
    --ig-image-border-radius: 10px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #1b5e20;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 4px 6px;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #2d6a4f;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-orange"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #fff8f0;
    --ig-box-border: 1px solid #ffd7a8;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 14px;
    --ig-box-gap: 22px;
    --ig-image-border: 2px solid #ffffff;
    --ig-image-border-radius: 10px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #e65100;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 4px 6px;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #f57c00;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-purple"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #f7f3ff;
    --ig-box-border: 1px solid #d6c8f0;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 14px;
    --ig-box-gap: 22px;
    --ig-image-border: 2px solid #ffffff;
    --ig-image-border-radius: 10px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #4a148c;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 4px 6px;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #7b2cbf;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-pink"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #fff5f8;
    --ig-box-border: 1px solid #ffc8dd;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 14px;
    --ig-box-gap: 22px;
    --ig-image-border: 2px solid #ffffff;
    --ig-image-border-radius: 10px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #c2185b;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 4px 6px;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #e91e63;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-red"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #fff5f5;
    --ig-box-border: 1px solid #ffc9c9;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 14px;
    --ig-box-gap: 22px;
    --ig-image-border: 2px solid #ffffff;
    --ig-image-border-radius: 10px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #b71c1c;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 4px 6px;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #d32f2f;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="product-black"] {
    --ig-box-min-width: 220px;
    --ig-box-max-width: 26%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #d0d0d0;
    --ig-box-border-radius: 14px;
    --ig-box-padding: 14px;
    --ig-box-gap: 22px;
    --ig-image-border: 2px solid #f0f0f0;
    --ig-image-border-radius: 10px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #000000;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 4px 6px;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 15px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 30px;
    --ig-desc-bg-color: #111111;
    --ig-desc-color: #ffffff;
    --ig-desc-border-radius: 8px;
    --ig-desc-padding: 10px 14px;
    --ig-desc-margin-top: 4px;
    --ig-desc-font-size: 13px;
    --ig-desc-font-weight: 700;
    --ig-desc-min-height: 40px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="ig-story-highlight"] {
    --ig-box-min-width: 110px;
    --ig-box-max-width: 14%;
    --ig-box-bg-color: transparent;
    --ig-box-padding: 8px 4px;
    --ig-box-gap: 14px;
    --ig-image-width: 82px;
    --ig-image-height: 82px;
    --ig-image-border: 3px solid #aaa;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #262626;
    --ig-title-border-radius: 0;
    --ig-title-padding: 8px 2px 0;
    --ig-title-margin-top: 4px;
    --ig-title-font-size: 12px;
    --ig-title-min-height: 18px;
    --ig-desc-color: #8e8e8e;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0;
    --ig-desc-font-size: 10px;
    --ig-desc-min-height: 14px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="ig-post"] {
    --ig-box-min-width: 260px;
    --ig-box-max-width: 30%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #dbdbdb;
    --ig-box-border-radius: 8px;
    --ig-box-gap: 24px;
    --ig-image-border-radius: 0;
    --ig-title-color: #262626;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 14px 4px;
    --ig-title-min-height: 28px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #262626;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 14px 14px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="telegram"] {
    --ig-box-min-width: 240px;
    --ig-box-max-width: 28%;
    --ig-box-bg-color: #ffffff;
    --ig-box-padding: 10px;
    --ig-box-gap: 18px;
    --ig-image-border-radius: 8px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #168acd;
    --ig-title-border-radius: 0;
    --ig-title-padding: 8px 4px 2px;
    --ig-title-margin-top: 4px;
    --ig-title-min-height: 24px;
    --ig-desc-color: #707579;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 4px 6px;
    --ig-desc-margin-top: 2px;
    --ig-desc-min-height: 24px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="facebook"] {
    --ig-box-min-width: 260px;
    --ig-box-max-width: 30%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #dddfe2;
    --ig-box-border-radius: 8px;
    --ig-image-border-radius: 0;
    --ig-title-color: #050505;
    --ig-title-border-radius: 0;
    --ig-title-padding: 12px 14px 4px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 26px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #65676b;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 14px 16px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="linkedin"] {
    --ig-box-min-width: 270px;
    --ig-box-max-width: 30%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid rgba(0,0,0,0.08);
    --ig-box-border-radius: 8px;
    --ig-box-gap: 22px;
    --ig-image-border-radius: 0;
    --ig-title-color: rgba(0,0,0,0.9);
    --ig-title-border-radius: 0;
    --ig-title-padding: 14px 14px 4px;
    --ig-title-min-height: 28px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: rgba(0,0,0,0.6);
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 14px 16px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 30px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="ig-story"] {
    --ig-box-min-width: 170px;
    --ig-box-max-width: 18%;
    --ig-box-bg-color: #000000;
    --ig-box-border-radius: 14px;
    --ig-box-gap: 18px;
    --ig-image-border-radius: 14px 14px 0 0;
    --ig-title-bg-color: rgba(0,0,0,0.55);
    --ig-title-color: #ffffff;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 10px 4px;
    --ig-title-margin-top: -56px;
    --ig-title-font-size: 13px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 24px;
    --ig-desc-bg-color: rgba(0,0,0,0.55);
    --ig-desc-color: #f0f0f0;
    --ig-desc-border-radius: 0 0 14px 14px;
    --ig-desc-padding: 0 10px 10px;
    --ig-desc-font-size: 11px;
    --ig-desc-min-height: 24px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="twitter-x"] {
    --ig-box-min-width: 250px;
    --ig-box-max-width: 28%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #cfd9de;
    --ig-box-border-radius: 16px;
    --ig-box-padding: 12px;
    --ig-box-gap: 18px;
    --ig-image-border: 1px solid #cfd9de;
    --ig-image-border-radius: 12px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #0f1419;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 2px 2px;
    --ig-title-margin-top: 4px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 22px;
    --ig-desc-color: #536471;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 2px 4px;
    --ig-desc-margin-top: 2px;
    --ig-desc-font-size: 13px;
    --ig-desc-min-height: 24px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="mini-thumb"] {
    --ig-box-min-width: 90px;
    --ig-box-max-width: 12%;
    --ig-box-bg-color: transparent;
    --ig-box-border-radius: 8px;
    --ig-box-gap: 8px;
    --ig-image-border-radius: 8px;
    --ig-title-bg-color: transparent;
    --ig-title-border-radius: 0;
    --ig-title-padding: 6px 2px 2px;
    --ig-title-font-size: 10px;
    --ig-title-min-height: 16px;
    --ig-desc-color: #999999;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0;
    --ig-desc-font-size: 9px;
    --ig-desc-min-height: 0px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="bento-box"] {
    --ig-box-min-width: 130px;
    --ig-box-max-width: 16%;
    --ig-box-bg-color: #f7f8fa;
    --ig-box-border: 1px solid #eceff3;
    --ig-box-border-radius: 10px;
    --ig-box-padding: 8px;
    --ig-box-gap: 10px;
    --ig-image-border-radius: 8px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #1a1a1a;
    --ig-title-border-radius: 0;
    --ig-title-padding: 8px 2px 2px;
    --ig-title-font-size: 12px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 20px;
    --ig-desc-color: #7b8794;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 2px 2px;
    --ig-desc-font-size: 10px;
    --ig-desc-min-height: 14px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="polaroid-mini"] {
    --ig-box-min-width: 120px;
    --ig-box-max-width: 15%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #ebebeb;
    --ig-box-border-radius: 4px;
    --ig-box-padding: 6px 6px 0px;
    --ig-box-gap: 14px;
    --ig-image-bg-color: #f0f0f0;
    --ig-image-border: 1px solid #e0e0e0;
    --ig-image-border-radius: 2px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #2c2c2c;
    --ig-title-border-radius: 0;
    --ig-title-padding: 8px 4px 10px;
    --ig-title-font-size: 11px;
    --ig-title-min-height: 22px;
    --ig-desc-color: #888888;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 4px 8px;
    --ig-desc-font-size: 10px;
    --ig-desc-min-height: 14px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="neon-night"] {
    --ig-box-min-width: 120px;
    --ig-box-max-width: 15%;
    --ig-box-bg-color: #0d1117;
    --ig-box-border: 1px solid #21262d;
    --ig-box-border-radius: 10px;
    --ig-box-gap: 10px;
    --ig-image-border-radius: 9px 9px 0 0;
    --ig-title-bg-color: #0d1117;
    --ig-title-color: #00d9ff;
    --ig-title-border-radius: 0;
    --ig-title-padding: 8px 4px 2px;
    --ig-title-font-size: 11px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 18px;
    --ig-desc-bg-color: #0d1117;
    --ig-desc-color: #8b949e;
    --ig-desc-border-radius: 0 0 9px 9px;
    --ig-desc-padding: 0 4px 8px;
    --ig-desc-font-size: 10px;
    --ig-desc-min-height: 14px;
}
.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="sharp-edge"] {
    --ig-box-min-width: 110px;
    --ig-box-max-width: 14%;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #111111;
    --ig-box-border-radius: 0px;
    --ig-box-gap: 6px;
    --ig-image-border-radius: 0;
    --ig-title-bg-color: #111111;
    --ig-title-color: #ffffff;
    --ig-title-border-radius: 0;
    --ig-title-padding: 6px 6px;
    --ig-title-font-size: 11px;
    --ig-title-font-weight: 700;
    --ig-title-min-height: 20px;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0;
    --ig-desc-font-size: 9px;
    --ig-desc-min-height: 0px;
}

.image-gallery-styled > .image-gallery-dynamic { gap: var(--ig-box-gap); direction: rtl; grid-template-columns: repeat(auto-fit, minmax(var(--ig-box-min-width), 1fr)); }
.image-gallery-styled .image-gallery-item-wrapper { box-sizing: border-box; width: 100%; max-width: 100% !important; min-width: 0; background: var(--ig-box-bg-color); border: var(--ig-box-border); border-radius: var(--ig-box-border-radius); padding: var(--ig-box-padding); overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.image-gallery-styled .image-gallery-item-wrapper .image-gallery-item { display: block; text-decoration: none; color: inherit; width: 100%; text-align: center; }
.image-gallery-styled .image-gallery-item-wrapper .image-gallery-item img { display: block; box-sizing: border-box; width: var(--ig-image-width); height: var(--ig-image-height); max-width: 100%; margin-left: auto; margin-right: auto; background: var(--ig-image-bg-color); border: var(--ig-image-border); border-radius: var(--ig-image-border-radius); object-fit: var(--ig-image-object-fit); }
.image-gallery-styled .image-gallery-item-wrapper .video-title-overlay { box-sizing: border-box; width: 100%; margin-top: var(--ig-title-margin-top); padding: var(--ig-title-padding); background: var(--ig-title-bg-color); color: var(--ig-title-color); border: var(--ig-title-border); border-radius: var(--ig-title-border-radius); font-size: var(--ig-title-font-size); font-weight: var(--ig-title-font-weight); min-height: var(--ig-title-min-height); text-align: center; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.image-gallery-styled .image-gallery-item-wrapper .image-desc-overlay { box-sizing: border-box; width: 100%; margin-top: var(--ig-desc-margin-top); padding: var(--ig-desc-padding); background: var(--ig-desc-bg-color); color: var(--ig-desc-color); border: var(--ig-desc-border); border-radius: var(--ig-desc-border-radius); font-size: var(--ig-desc-font-size); font-weight: var(--ig-desc-font-weight); min-height: var(--ig-desc-min-height); text-align: center; display: block; line-height: 1.6; cursor: pointer; }

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="sunset"] {
    --ig-box-min-width: 210px;
    --ig-box-bg-color: #fff4ec;
    --ig-box-border: 1px solid #f4c7a5;
    --ig-box-border-radius: 18px;
    --ig-box-padding: 8px;
    --ig-box-gap: 18px;
    --ig-image-border-radius: 12px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #9c3418;
    --ig-title-border-radius: 0;
    --ig-title-padding: 10px 6px 4px;
    --ig-title-font-size: 16px;
    --ig-desc-color: #8c5a45;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 6px 10px;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="ocean"] {
    --ig-box-min-width: 180px;
    --ig-box-bg-color: #e9f7fb;
    --ig-box-border: 1px solid #b5e1ed;
    --ig-box-border-radius: 24px;
    --ig-box-padding: 18px;
    --ig-box-gap: 18px;
    --ig-image-width: 110px;
    --ig-image-height: 110px;
    --ig-image-border: 4px solid #ffffff;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #075985;
    --ig-title-border-radius: 0;
    --ig-desc-color: #39758b;
    --ig-desc-border-radius: 0;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="forest"] {
    --ig-box-min-width: 210px;
    --ig-box-bg-color: #f0f7ef;
    --ig-box-border: 2px solid #94bb91;
    --ig-box-border-radius: 4px 22px 4px 22px;
    --ig-box-padding: 10px;
    --ig-image-border-radius: 3px 15px 3px 15px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #285d37;
    --ig-title-border-radius: 0;
    --ig-desc-color: #58745d;
    --ig-desc-border-radius: 0;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="editorial"] {
    --ig-box-min-width: 250px;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #dedbd4;
    --ig-box-border-radius: 0;
    --ig-box-padding: 0;
    --ig-box-gap: 24px;
    --ig-image-border-radius: 0;
    --ig-title-color: #28241f;
    --ig-title-border-radius: 0;
    --ig-title-padding: 16px 14px 8px;
    --ig-title-font-size: 19px;
    --ig-title-font-weight: 700;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #70695f;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 0 14px 16px;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="pastel-lilac"] {
    --ig-box-min-width: 180px;
    --ig-box-bg-color: #f4efff;
    --ig-box-border: 1px solid #d6c9f3;
    --ig-box-border-radius: 24px;
    --ig-box-padding: 18px 12px;
    --ig-box-gap: 18px;
    --ig-image-width: 130px;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #5b3f92;
    --ig-title-border-radius: 0;
    --ig-desc-color: #81719e;
    --ig-desc-border-radius: 0;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="dark-copper"] {
    --ig-box-min-width: 220px;
    --ig-box-bg-color: #24201e;
    --ig-box-border: 2px solid #b87850;
    --ig-box-border-radius: 6px;
    --ig-box-padding: 8px;
    --ig-box-gap: 22px;
    --ig-image-border-radius: 2px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #f1c6a5;
    --ig-title-border-radius: 0;
    --ig-title-font-size: 16px;
    --ig-desc-color: #c2aaa0;
    --ig-desc-border-radius: 0;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="soft-round"] {
    --ig-box-min-width: 190px;
    --ig-box-bg-color: #f3f7ff;
    --ig-box-border-radius: 32px;
    --ig-box-padding: 14px;
    --ig-box-gap: 16px;
    --ig-image-border-radius: 24px;
    --ig-title-bg-color: transparent;
    --ig-title-color: #394e78;
    --ig-title-border-radius: 0;
    --ig-desc-color: #7382a1;
    --ig-desc-border-radius: 0;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="red-label"] {
    --ig-box-min-width: 180px;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #e5e5e5;
    --ig-box-border-radius: 6px;
    --ig-box-padding: 0;
    --ig-box-gap: 14px;
    --ig-image-border-radius: 5px 5px 0 0;
    --ig-title-bg-color: #c62828;
    --ig-title-color: #ffffff;
    --ig-title-border-radius: 0;
    --ig-title-padding: 9px 8px;
    --ig-desc-bg-color: #ffffff;
    --ig-desc-color: #555555;
    --ig-desc-border-radius: 0;
    --ig-desc-padding: 8px;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="sand-frame"] {
    --ig-box-min-width: 210px;
    --ig-box-bg-color: #f4ecdb;
    --ig-box-border: 6px solid #e5d2ac;
    --ig-box-border-radius: 2px;
    --ig-box-padding: 6px;
    --ig-image-border-radius: 0;
    --ig-title-bg-color: transparent;
    --ig-title-color: #6a4c29;
    --ig-title-border-radius: 0;
    --ig-desc-color: #917856;
    --ig-desc-border-radius: 0;
}

.image-gallery-wrapper.image-gallery-styled[data-imagegal-preset="mono-circle"] {
    --ig-box-min-width: 160px;
    --ig-box-bg-color: #ffffff;
    --ig-box-border: 1px solid #222222;
    --ig-box-border-radius: 0;
    --ig-box-padding: 20px 10px;
    --ig-box-gap: 12px;
    --ig-image-width: 100px;
    --ig-image-height: 100px;
    --ig-image-border: 3px solid #222222;
    --ig-image-border-radius: 50%;
    --ig-title-bg-color: transparent;
    --ig-title-color: #111111;
    --ig-title-border-radius: 0;
    --ig-title-font-weight: 700;
    --ig-desc-color: #555555;
    --ig-desc-border-radius: 0;
}

.ai-content-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 20px 0; direction: rtl; }
.ai-source-link { display: inline-block; margin-top: 10px; color: #2563eb; font-weight: 700; }
.ai-hero-tldr .ai-source-link { color: #fff; }
.ai-content-cards .ai-content-card { min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.ai-content-cards .ai-content-card-image { display: block; width: 100%; height: 180px; object-fit: cover; }
.ai-content-cards .ai-content-card-body { padding: 18px; min-width: 0; }
.ai-content-cards .ai-content-card-title { margin: 0 0 10px; color: #172554; font-size: 18px; line-height: 1.6; }
.ai-content-cards .ai-content-card-text { margin: 0; color: #475569; line-height: 1.9; overflow-wrap: anywhere; }
.ai-content-cards .ai-content-card-link { display: inline-block; margin-top: 14px; color: #2563eb; font-weight: 700; text-decoration: none; }
.ai-content-magazine .ai-content-card { border-radius: 8px; }
.ai-content-magazine .ai-content-card-title { font-size: 20px; }
.ai-content-horizontal { grid-template-columns: 1fr; }
.ai-content-horizontal .ai-content-card { display: flex; align-items: stretch; }
.ai-content-horizontal .ai-content-card-image { width: 210px; min-height: 100%; height: auto; flex-shrink: 0; }
.ai-content-overlay .ai-content-card { position: relative; min-height: 260px; display: flex; align-items: flex-end; background: #172554; }
.ai-content-overlay .ai-content-card-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-content-overlay .ai-content-card-body { position: relative; width: 100%; box-sizing: border-box; background: linear-gradient(transparent, rgba(15, 23, 42, .95)); padding-top: 48px; }
.ai-content-overlay .ai-content-card-title, .ai-content-overlay .ai-content-card-text, .ai-content-overlay .ai-content-card-link { color: #fff; }
.ai-content-minimal { grid-template-columns: 1fr; gap: 0; }
.ai-content-minimal .ai-content-card { display: flex; align-items: center; border: 0; border-bottom: 1px solid #e2e8f0; border-radius: 0; box-shadow: none; }
.ai-content-minimal .ai-content-card-image { width: 90px; height: 90px; margin: 12px; border-radius: 10px; flex-shrink: 0; }
.ai-content-spotlight .ai-content-card { background: linear-gradient(145deg, #eef2ff, #fdf4ff); border-color: #ddd6fe; padding: 18px; }
.ai-content-spotlight .ai-content-card-image { width: 84px; height: 84px; margin: 0 auto; border-radius: 22px; }
.ai-content-spotlight .ai-content-card-body { padding: 16px 0 0; }
.ai-content-portrait .ai-content-card-image { height: 300px; }
.ai-content-portrait .ai-content-card-body { border-right: 5px solid #8b5cf6; }
.ai-content-ribbon .ai-content-card { border-radius: 4px 22px 4px 22px; border-top: 6px solid #f97316; }
.ai-content-ribbon .ai-content-card-link { padding: 7px 14px; background: #fff7ed; border-radius: 20px; color: #c2410c; }
.ai-content-dark .ai-content-card { background: #111827; border-color: #334155; }
.ai-content-dark .ai-content-card-title { color: #f8fafc; }
.ai-content-dark .ai-content-card-text { color: #cbd5e1; }
.ai-content-dark .ai-content-card-link { padding: 8px 15px; border-radius: 8px; background: #a5f3fc; color: #164e63; }
.ai-content-circle .ai-content-card { text-align: center; padding: 24px 12px 8px; background: #f0fdfa; }
.ai-content-circle .ai-content-card-image { width: 120px; height: 120px; margin: auto; border-radius: 50%; border: 4px solid white; box-shadow: 0 4px 18px rgba(13, 148, 136, .2); }
.ai-content-mosaic { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.ai-content-mosaic .ai-content-card:nth-child(3n + 1) { background: #eff6ff; }
.ai-content-mosaic .ai-content-card:nth-child(3n + 2) { background: #fdf2f8; }
.ai-content-mosaic .ai-content-card:nth-child(3n) { background: #f0fdf4; }
.ai-content-mosaic .ai-content-card:nth-child(2n) .ai-content-card-image { height: 120px; }
.ai-content-outline .ai-content-card { border: 2px solid #6366f1; border-radius: 4px; box-shadow: none; }
.ai-content-outline .ai-content-card-image { height: auto; }
.ai-content-banner { grid-template-columns: 1fr; }
.ai-content-banner .ai-content-card { display: grid; grid-template-columns: minmax(180px, 38%) 1fr; background: #fff7ed; border-color: #fed7aa; }
.ai-content-banner .ai-content-card-image { height: 100%; min-height: 210px; }
.ai-content-banner .ai-content-card-body { align-self: center; padding: 28px; }
.ai-optional-image { display: block; width: 100%; max-width: 280px; max-height: 160px; object-fit: cover; border-radius: 10px; margin: 0 auto 12px; }
.ai-benefit-card.ai-has-image { padding-left: 120px; }
.ai-benefit-card.ai-has-image .ai-optional-image { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 85px; height: 110px; margin: 0; }
.ai-toc-btn .ai-optional-image { width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
.ai-card-number-title, .ai-highlight-title { font-weight: 700; color: #1e3a8a; margin-bottom: 6px; }
.ai-toc-btn-description { display: block; font-size: 12px; font-weight: normal; }
.ai-modal-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
#aiFormArea input, #aiFormArea textarea, #aiFormArea select { box-sizing: border-box; max-width: 100%; }
.ai-product-dialog { width: 850px; max-width: 94%; box-sizing: border-box; margin: 45px auto; padding: 24px; border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(15, 23, 42, .3); }
.ai-product-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.ai-product-header h3 { margin: 0; color: #172554; font-size: 19px; }
.ai-product-header p { margin: 7px 0 0; color: #64748b; font-size: 12px; }
.ai-product-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 24px; cursor: pointer; }
.ai-product-search { display: flex; gap: 9px; margin-top: 18px; }
.ai-product-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.ai-product-search input:focus { outline: 2px solid #bfdbfe; border-color: #3b82f6; }
.ai-product-search button, .ai-product-footer button { padding: 10px 18px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ai-product-status { min-height: 20px; margin: 12px 0; color: #64748b; font-size: 12px; }
.ai-product-results { max-height: 55vh; overflow: auto; padding: 2px; }
.ai-product-result { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.ai-product-result:hover { border-color: #93c5fd; background: #f8fbff; box-shadow: 0 6px 20px rgba(37, 99, 235, .09); }
.ai-product-result > img { width: 74px; height: 74px; object-fit: cover; flex: 0 0 74px; border-radius: 10px; background: #f1f5f9; }
.ai-product-info { flex: 1; min-width: 0; }
.ai-product-info strong { display: block; color: #1e293b; font-size: 14px; overflow-wrap: anywhere; }
.ai-product-info p { display: -webkit-box; margin: 5px 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #64748b; font-size: 12px; line-height: 1.7; }
.ai-product-tag { display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 20px; background: #eef2ff; color: #4f46e5; font-size: 10px; font-weight: 700; }
.ai-product-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #148052; font-size: 11px; }
.ai-product-select { flex: 0 0 auto; padding: 8px 14px; border: 1px solid #bbf7d0; border-radius: 9px; background: #f0fdf4; color: #15803d; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ai-product-select:hover { background: #15803d; color: #fff; }
.ai-product-select:disabled { background: #f1f5f9; border-color: #e2e8f0; color: #64748b; cursor: default; }
.ai-product-footer { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.ai-content-cards .ai-content-card { box-sizing: border-box; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.ai-content-cards .ai-content-card-image { transition: transform .4s ease, filter .4s ease; }
.ai-content-cards .ai-content-card:hover { transform: translateY(-5px); border-color: #a5b4fc; box-shadow: 0 18px 38px rgba(30, 41, 59, .16); }
.ai-content-cards .ai-content-card:hover .ai-content-card-image { filter: saturate(1.12); }
.ai-content-cards .ai-content-card-title, .ai-content-cards .ai-content-card-text { overflow-wrap: anywhere; }
.ai-content-cards .ai-content-card-link, .ai-source-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #dbeafe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.ai-content-cards .ai-content-card-link:hover, .ai-source-link:hover { background: #1d4ed8; color: #fff; transform: translateX(-3px); box-shadow: 0 5px 14px rgba(37, 99, 235, .22); }
.ai-content-cards .ai-content-card-link:focus-visible, .ai-source-link:focus-visible, .ai-carousel-track:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.ai-content-overlay .ai-content-card-link, .ai-content-dark .ai-content-card-link { background: #fff; border-color: #fff; color: #172554; }
.ai-hero-tldr .ai-source-link { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }
.ai-hero-tldr .ai-source-link:hover { background: #fff; color: #1d4ed8; }
.ai-content-carousel { display: block; padding: 18px; border: 1px solid #e2e8f0; border-radius: 24px; background: linear-gradient(140deg, #f8fafc, #eef2ff); }
.ai-carousel-hint { display: flex; justify-content: space-between; gap: 12px; margin: 0 2px 12px; color: #64748b; font-size: 12px; font-weight: 700; }
.ai-carousel-hint span { color: #4f46e5; font-size: 18px; }
.ai-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 300px); gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 8px 3px 18px; scrollbar-color: #a5b4fc #e2e8f0; scrollbar-width: thin; }
.ai-carousel-track .ai-content-card { scroll-snap-align: start; height: 100%; }
.ai-content-dark.ai-content-carousel { background: linear-gradient(145deg, #0f172a, #312e81); border-color: #334155; }
.ai-content-dark .ai-carousel-hint { color: #cbd5e1; }
.ai-content-circle.ai-content-carousel { background: linear-gradient(145deg, #f0fdfa, #ecfeff); }
.ai-content-ribbon.ai-content-carousel { background: linear-gradient(145deg, #fff7ed, #fef2f2); }
.ai-benefits-stage { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; min-height: 290px; padding: 24px 0 51px; }
.ai-benefit-card { grid-area: 1 / 1; justify-self: left; position: relative; top: auto; height: auto; min-height: 215px; overflow: visible; }
.ai-benefits-slider:not(.ai-js-ready) .ai-benefit-card:first-child { justify-self: center; margin: 0 auto; }
.ai-benefit-card .ai-source-link { align-self: flex-start; }
.ai-image-link { display: contents; }
.ai-title-link { color: inherit; text-decoration: none; }
.ai-title-link:hover { color: inherit; text-decoration: underline; }
.ai-title-link:focus-visible, .ai-image-link:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
@media (max-width: 600px) {
    .ai-modal-panels { grid-template-columns: minmax(0, 1fr); }
    .ai-product-dialog { padding: 16px; margin: 18px auto; }
    .ai-product-result { gap: 9px; padding: 10px; flex-wrap: wrap; }
    .ai-product-result > img { width: 60px; height: 60px; flex-basis: 60px; }
    .ai-product-select { margin-right: auto; }
    .ai-content-carousel { padding: 12px; border-radius: 18px; }
    .ai-carousel-track { grid-auto-columns: minmax(0, 86%); gap: 12px; }
    .ai-content-minimal .ai-content-card-image { width: 65px; height: 65px; margin: 8px; }
    .ai-content-minimal .ai-content-card-body { padding: 12px; }
    .ai-toc-btn { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
    .ai-highlight-card { flex-wrap: wrap; }
    .ai-content-horizontal .ai-content-card { display: block; }
    .ai-content-horizontal .ai-content-card-image { width: 100%; height: 180px; min-height: 0; }
    .ai-content-banner .ai-content-card { display: block; }
    .ai-content-banner .ai-content-card-image { height: 180px; min-height: 0; }
    .ai-benefits-stage { height: auto; min-height: 260px; padding-bottom: 41px; }
    .ai-benefit-card { height: auto; min-height: 195px; }
    .ai-benefit-card.ai-has-image { padding-left: 95px; }
    .ai-benefit-card.ai-has-image .ai-optional-image { width: 65px; height: 85px; left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-content-cards .ai-content-card, .ai-content-cards .ai-content-card-image, .ai-content-cards .ai-content-card-link, .ai-source-link { transition: none; }
    .ai-content-cards .ai-content-card:hover, .ai-content-cards .ai-content-card-link:hover, .ai-source-link:hover { transform: none; }
}

.ai-motion { display: block; position: relative; padding: 22px; border-radius: 26px; background: #f1f5f9; }
.ai-motion-stage { display: grid; gap: 14px; }
.ai-motion .ai-content-card { position: relative; min-width: 0; height: auto; }
.ai-motion .ai-content-card-image { width: 100%; height: 240px; object-fit: cover; object-position: center; }
.ai-motion .ai-content-card-body { padding: 24px; }
.ai-motion .ai-content-card-title { font-size: 21px; }
.ai-motion-controls { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 15px; direction: rtl; }
.ai-motion-ready .ai-motion-controls { display: flex; }
.ai-motion-single .ai-motion-controls { display: none; }
.ai-motion-controls button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(100, 116, 139, .3); border-radius: 50%; background: #fff; color: #334155; font: inherit; font-size: 20px; cursor: pointer; transition: transform .2s, background .2s; }
.ai-motion-controls button:hover { transform: scale(1.1); background: #e0e7ff; }
.ai-motion-controls button:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.ai-motion-count { min-width: 42px; color: #64748b; text-align: center; font-size: 12px; font-weight: 700; direction: ltr; }
.ai-motion-ready .ai-motion-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.ai-motion-ready .ai-content-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .55s ease, transform .55s ease, visibility .55s; }
.ai-motion-ready .ai-content-card.ai-motion-active { opacity: 1; visibility: visible; transform: none; z-index: 1; }
.ai-motion-ready .ai-content-card.ai-motion-active:hover { transform: translateY(-3px); }
.ai-content-motion-aurora { background: linear-gradient(135deg, #c7d2fe, #e0f2fe 48%, #f5d0fe); }
.ai-content-motion-aurora .ai-content-card { border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.8); border-radius: 22px; box-shadow: 0 16px 45px rgba(79,70,229,.16); }
.ai-content-motion-aurora .ai-content-card-image { height: 220px; }
.ai-content-motion-aurora.ai-motion-ready .ai-content-card { transform: scale(.94); }
.ai-content-motion-editorial { background: #f8f5ef; border: 1px solid #e8dfd0; }
.ai-content-motion-editorial .ai-content-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; border: 0; border-radius: 4px; background: #fffdfa; }
.ai-content-motion-editorial .ai-content-card-image { height: 100%; min-height: 260px; }
.ai-content-motion-editorial .ai-content-card-body { align-self: center; border-right: 4px solid #b45309; }
.ai-content-motion-editorial .ai-content-card-title { font-size: 25px; }
.ai-content-motion-cinema { background: #0f172a; }
.ai-content-motion-cinema .ai-content-card { background: #1e293b; border: 0; border-radius: 16px; }
.ai-content-motion-cinema .ai-content-card-image { height: 280px; }
.ai-content-motion-cinema .ai-content-card-title { color: #fff; }
.ai-content-motion-cinema .ai-content-card-text, .ai-content-motion-cinema .ai-motion-count { color: #cbd5e1; }
.ai-content-motion-cinema.ai-motion-ready .ai-content-card { transform: scale(1.04); }
.ai-content-motion-stack { background: linear-gradient(135deg, #fef3c7, #ffedd5); padding: 28px; }
.ai-content-motion-stack .ai-content-card { border-radius: 12px; border: 1px solid #fed7aa; box-shadow: 7px 7px 0 #fed7aa, 14px 14px 0 #ffedd5; }
.ai-content-motion-stack.ai-motion-ready .ai-content-card { transform: translateY(24px) rotate(2deg); }
.ai-content-motion-neon { background: radial-gradient(circle at top, #312e81, #0f172a 70%); }
.ai-content-motion-neon .ai-content-card { background: #111827; border: 1px solid #818cf8; box-shadow: 0 0 25px rgba(129,140,248,.3); }
.ai-content-motion-neon .ai-content-card-title { color: #c4b5fd; }
.ai-content-motion-neon .ai-content-card-text, .ai-content-motion-neon .ai-motion-count { color: #cbd5e1; }
.ai-content-motion-neon.ai-motion-ready .ai-content-card { transform: translateY(18px) scale(.96); }
.ai-content-motion-postcard { background: #fdf2e9; border: 1px solid #f5d7c4; }
.ai-content-motion-postcard .ai-content-card { padding: 12px; border-radius: 5px; background: #fffcf6; border: 1px solid #edd9c6; }
.ai-content-motion-postcard .ai-content-card-image { border-radius: 3px; }
.ai-content-motion-postcard.ai-motion-ready .ai-content-card { transform: rotate(-3deg) scale(.96); }
.ai-content-motion-split { background: linear-gradient(120deg, #ccfbf1, #e0f2fe); }
.ai-content-motion-split .ai-content-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: stretch; border: 0; border-radius: 22px; }
.ai-content-motion-split .ai-content-card-image { height: 100%; min-height: 250px; }
.ai-content-motion-split .ai-content-card-body { align-self: center; }
.ai-content-motion-split.ai-motion-ready .ai-content-card { transform: translateX(-35px); }
.ai-content-motion-orbit { background: radial-gradient(circle at top, #fce7f3, #eef2ff); }
.ai-content-motion-orbit .ai-content-card { text-align: center; background: rgba(255,255,255,.88); border-radius: 32px; }
.ai-content-motion-orbit .ai-content-card-image { width: 150px; height: 150px; margin: 24px auto 0; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 8px #fce7f3, 0 12px 30px rgba(190,24,93,.2); }
.ai-content-motion-orbit.ai-motion-ready .ai-content-card { transform: translateY(-25px); }
.ai-motion-ready .ai-content-card.ai-motion-active { transform: none; }
@media (max-width: 600px) {
    .ai-motion { padding: 14px; border-radius: 20px; }
    .ai-motion .ai-content-card-body { padding: 18px; }
    .ai-motion .ai-content-card-image { height: 190px; }
    .ai-content-motion-editorial .ai-content-card, .ai-content-motion-split .ai-content-card { display: block; }
    .ai-content-motion-editorial .ai-content-card-image, .ai-content-motion-split .ai-content-card-image { min-height: 0; height: 190px; }
    .ai-content-motion-orbit .ai-content-card-image { width: 120px; height: 120px; }
    .ai-content-motion-stack { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-motion-ready .ai-content-card, .ai-motion-controls button { transition: none; }
}

.ai-content-motion-cinema .ai-content-card:has(.ai-content-card-image) { display: flex; align-items: flex-end; min-height: 360px; }
.ai-content-motion-cinema .ai-content-card-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-content-motion-cinema .ai-content-card-body { position: relative; box-sizing: border-box; width: 100%; padding: 90px 28px 28px; background: linear-gradient(transparent, rgba(15, 23, 42, .96)); }
.ai-content-motion-stack.ai-motion-ready .ai-motion-stage { padding: 18px 11% 24px; overflow: hidden; }
.ai-content-motion-stack.ai-motion-ready .ai-content-card.ai-motion-before { visibility: visible; opacity: .55; transform: translateX(24%) rotate(5deg) scale(.88); z-index: 0; pointer-events: none; }
.ai-content-motion-stack.ai-motion-ready .ai-content-card.ai-motion-after { visibility: visible; opacity: .55; transform: translateX(-24%) rotate(-5deg) scale(.88); z-index: 0; pointer-events: none; }
.ai-content-motion-stack.ai-motion-ready .ai-content-card.ai-motion-active { z-index: 1; }
.ai-content-motion-neon .ai-motion-stage, .ai-content-motion-postcard .ai-motion-stage, .ai-content-motion-split .ai-motion-stage { display: grid; grid-template-columns: none; grid-auto-flow: column; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 12px 4px 18px; }
.ai-content-motion-neon .ai-motion-stage { grid-auto-columns: minmax(180px, 220px); }
.ai-content-motion-postcard .ai-motion-stage { grid-auto-columns: minmax(210px, 260px); }
.ai-content-motion-split .ai-motion-stage { grid-auto-columns: minmax(290px, 47%); }
.ai-content-motion-neon.ai-motion-ready .ai-content-card, .ai-content-motion-postcard.ai-motion-ready .ai-content-card, .ai-content-motion-split.ai-motion-ready .ai-content-card { grid-area: auto; opacity: 1; visibility: visible; transform: none; scroll-snap-align: center; }
.ai-content-motion-neon .ai-content-card-image { height: 112px; }
.ai-content-motion-neon .ai-content-card-body { padding: 15px; }
.ai-content-motion-neon .ai-content-card-title { font-size: 16px; }
.ai-content-motion-neon .ai-content-card-text { font-size: 13px; }
.ai-content-motion-neon.ai-motion-ready .ai-content-card.ai-motion-active { border-color: #c4b5fd; box-shadow: 0 0 22px rgba(167, 139, 250, .5); }
.ai-content-motion-postcard .ai-content-card-image { height: 175px; }
.ai-content-motion-postcard .ai-content-card-body { padding: 17px 8px 24px; }
.ai-content-motion-postcard .ai-content-card-title { font-size: 16px; }
.ai-content-motion-postcard .ai-content-card:nth-child(even) { transform: rotate(2deg); }
.ai-content-motion-postcard .ai-content-card:nth-child(odd) { transform: rotate(-2deg); }
.ai-content-motion-postcard.ai-motion-ready .ai-content-card.ai-motion-active { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(120, 53, 15, .2); }
.ai-content-motion-split .ai-content-card { grid-template-columns: minmax(95px, 36%) minmax(0, 1fr); }
.ai-content-motion-split .ai-content-card-image { height: 100%; min-height: 170px; }
.ai-content-motion-split .ai-content-card-body { padding: 17px; }
.ai-content-motion-split .ai-content-card-title { font-size: 17px; }
.ai-content-motion-split .ai-content-card:not(:has(.ai-content-card-image)) { display: block; }
@media (max-width: 600px) {
    .ai-content-motion-cinema .ai-content-card:has(.ai-content-card-image) { min-height: 280px; }
    .ai-content-motion-cinema .ai-content-card-image { height: 100%; }
    .ai-content-motion-stack.ai-motion-ready .ai-motion-stage { padding: 12px 9% 20px; }
    .ai-content-motion-neon .ai-motion-stage { grid-auto-columns: minmax(150px, 45%); }
    .ai-content-motion-postcard .ai-motion-stage { grid-auto-columns: minmax(175px, 65%); }
    .ai-content-motion-split .ai-motion-stage { grid-auto-columns: minmax(250px, 88%); }
    .ai-content-motion-neon .ai-content-card-image { height: 100px; }
    .ai-content-motion-postcard .ai-content-card-image { height: 150px; }
    .ai-content-motion-split .ai-content-card { display: grid; }
    .ai-content-motion-split .ai-content-card-image { height: 100%; min-height: 150px; }
}

