﻿
/* ============================================================
   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 !important;
    margin: 20px 0 !important;
    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;
}

.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;
}

/* ============================================================
   گالری تصویر - استایل جدید با عنوان زیر تصویر
   ============================================================ */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
    direction: rtl;
}

.image-gallery-item-wrapper {
    flex: 0 1 calc(25% - 20px);
    min-width: 200px;
    max-width: calc(25% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.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: auto;
}

.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;
}

/* ============================================================
   گالری تصویر - استایل قدیمی (برای سازگاری)
   ============================================================ */
.image-gallery-item {
    flex: 0 1 calc(25% - 20px);
    min-width: 200px;
    max-width: calc(25% - 20px);
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.image-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-gallery-item img.gallery-image-img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

/* ============================================================
   گالری ویدئو
   ============================================================ */
.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: 1200px) {
    .link-card,
    .image-gallery-item,
    .image-gallery-item-wrapper {
        flex: 0 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
    .testimonial-card {
        flex: 0 1 calc(50% - 25px);
    }
    .link-icon,
    .gallery-image-img,
    .image-gallery-item-wrapper .image-gallery-item img {
    }
    .pricing-card {
        min-width: 280px;
        max-width: calc(33.33% - 25px);
    }
}

@media (max-width: 992px) {
    .link-card,
    .image-gallery-item,
    .image-gallery-item-wrapper {
        flex: 0 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    .testimonial-card {
        flex: 0 1 calc(100% - 25px);
    }
    .link-icon,
    .gallery-image-img,
    .image-gallery-item-wrapper .image-gallery-item img {
    }
}

@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,
    .image-gallery-item,
    .image-gallery-item-wrapper {
        flex: 0 1 100%;
        max-width: 100%;
    }
    .link-icon,
    .gallery-image-img,
    .image-gallery-item-wrapper .image-gallery-item img {
    }
}

@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;
    }
}
