/* ================= Hero Section ================= */
.hero-section {
    position: relative;
    padding: 120px 15px 80px;
    overflow: hidden;
    font-family: 'IranSans', sans-serif;
}

/* بک‌گراند موجی و بنفش روشن */
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #fafafa, #ece6ff, #f5f0ff);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 0;
}

/* محتوا روی بکگراند */
.hero-content {
    position: relative;
    z-index: 1;
    color: #3f3f3f;
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #9333ea;
}

.hero-content p {
    font-size: 20px;
    margin-top: 15px;
    color: #555;
}

/* دکمه‌ها */
.hero-buttons a {
    display: inline-block;
    margin: 12px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary-hero {
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    color: #fff;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-outline-hero {
    border: 2px solid #9333ea;
    background: transparent;
    color: #9333ea;
}

.btn-outline-hero:hover {
    background: rgba(147, 51, 234, 0.1);
    transform: translateY(-3px);
}

/* کارت‌ها */
.hero-cards {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card-hero {
    background: rgba(147, 51, 234, 0.05);
    padding: 25px 20px;
    border-radius: 20px;
    width: 220px;
    text-align: center;
    transition: 0.4s;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.card-hero h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 12px;
    color: #4f46e5;
}

.card-hero p {
    font-size: 14px;
    margin-top: 8px;
    color: #555;
}

.card-hero svg {
    transition: 0.4s;
}

/* انیمیشن کارت */
.interactive-card:hover {
    background: rgba(147, 51, 234, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.interactive-card:hover svg {
    transform: scale(1.2) rotate(10deg);
}

/* ================= Responsive ================= */
@media(max-width: 992px){
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 18px; }
    .card-hero { width: 45%; margin: 10px; }
}

@media(max-width: 768px){
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    .card-hero { width: 90%; margin: 10px auto; }
    .hero-buttons a { width: 100%; display: block; margin: 10px 0; }
}

/*////////////////////////////////////////////////////////////////*/

.features-section {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(180deg, #fdfcff 0%, #f3f1f8 100%);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #4f46e5;
}

/* کارت شیشه‌ای */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 22px;
    padding: 30px 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.glass-card:hover .feature-icon {
    transform: rotate(15deg) scale(1.2);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #4f46e5;
}

.feature-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* ریسپانسیو */
@media(max-width: 992px){
    .section-title { font-size: 28px; }
    .feature-card h3 { font-size: 18px; }
    .feature-card p { font-size: 14px; }
}

@media(max-width: 768px){
    .feature-card { margin: 15px auto; }
    .feature-icon { width: 60px; height: 60px; }
}

/*//////////////////////////////////////////////////////////////*/
/* تیتر با خط کنار */
.section-header h2 {
    font-weight: 700;
    color: #4b5563; /* خاکستری زیبا */
    margin: 0 20px;
}

.section-header .line {
    flex: 1;
    height: 2px;
    background: #d1d5db; /* خاکستری روشن */
}

/* اسکرول افقی */
.insurance-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.insurance-carousel::-webkit-scrollbar {
    height: 8px;
}

.insurance-carousel::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 4px;
}

.company-card {
    min-width: 120px;
    max-width: 120px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.company-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.company-card p {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* ریسپانسیو */
@media(max-width: 768px){
    .company-card {
        min-width: 100px;
        max-width: 100px;
        padding: 10px;
    }

    .company-card img {
        max-width: 60px;
    }

    .section-header h2 {
        font-size: 18px;
    }
}


/*///////////////////////////////////////////////*/


.quick-calculator-section {
    background: linear-gradient(180deg, #f9f7ff 0%, #ece6ff 100%);
    padding: 80px 15px;
    font-family: 'IranSans', sans-serif;
}

.calculator-cards {
    gap: 20px;
}

.insurance-card {
    background: rgba(147, 51, 234, 0.05);
    padding: 20px;
    border-radius: 20px;
    width: 180px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.insurance-card.selected {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.15);
    transform: translateY(-5px);
}

.insurance-card h4 {
    font-size: 16px;
    margin-top: 10px;
    color: #4f46e5;
}

.insurance-icon {
    width: 50px;
    height: 50px;
}

.calculator-inputs input {
    width: 180px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    text-align: center;
}

.calculated-price {
    font-size: 18px;
    color: #4f46e5;
}

.calculated-price strong {
    font-size: 20px;
    color: #9333ea;
}

@media(max-width: 768px){
    .calculator-cards { flex-direction: column; align-items: center; }
    .calculator-inputs { flex-direction: column; gap: 15px; }
}


/*//////////////////////////////////////////////////////////////////////////////*/
.stats-premium {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #faf9ff 0%,
        #f3f0ff 50%,
        #ede9ff 100%
    );
}

/* هاله‌های نرم بکگراند */
.stats-premium::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(147,51,234,0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.stats-premium::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.stat-item {
    position: relative;
    padding: 25px 15px;
    border-radius: 18px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(147,51,234,0.12);
}

/* عدد */
.stat-number {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-number h3 {
    font-size: 38px;
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number span {
    font-size: 22px;
    font-weight: 700;
    margin-right: 5px;
    color: #7c3aed;
}

/* متن */
.stat-item p {
    margin-top: 12px;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* جداکننده خیلی ظریف دسکتاپ */
@media(min-width:768px){
    .col-md-3:not(:last-child) .stat-item::after {
        content: "";
        position: absolute;
        left: -10px;
        top: 25%;
        height: 50%;
        width: 1px;
        background: linear-gradient(
            to bottom,
            transparent,
            rgba(147,51,234,0.25),
            transparent
        );
    }
}

/* موبایل */
@media(max-width:768px){
    .stat-number h3 {
        font-size: 30px;
    }

    .stat-item {
        margin-bottom: 18px;
    }
}


/* ================================
   Clauses Admin Index
================================ */
.clause-page {
    font-family: 'Vazirmatn', sans-serif;
}

.clause-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(135deg, #fcfbff 0%, #f2ecff 55%, #ede9fe 100%);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(147, 51, 234, 0.08);
}

.clause-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(147, 51, 234, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.12), transparent 30%);
    pointer-events: none;
}

.clause-hero-content {
    position: relative;
    z-index: 2;
}

.clause-hero h2 {
    color: #312e81;
    font-size: 30px;
}

.clause-hero p {
    color: #6b7280 !important;
    font-size: 15px;
}

.btn-clause-primary {
    background: linear-gradient(90deg, #9333ea, #4f46e5);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(147, 51, 234, 0.18);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-clause-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.22);
    color: #fff !important;
}

.custom-alert-success,
.custom-alert-danger {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.clause-glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.08);
}

.clause-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(248,245,255,0.8));
}

.clause-card-header h5 {
    color: #3730a3;
}

.clause-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(147, 51, 234, 0.08);
    border: 1px solid rgba(147, 51, 234, 0.12);
}

.clause-table {
    margin: 0;
}

.clause-table thead th {
    background: #faf7ff;
    color: #4b5563;
    font-weight: 800;
    font-size: 14px;
    padding: 16px 14px;
    border-bottom: 1px solid #ede9fe;
    white-space: nowrap;
}

.clause-table tbody td {
    padding: 18px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f0f8;
}

.clause-table tbody tr {
    transition: all 0.25s ease;
}

.clause-table tbody tr:hover {
    background: rgba(147, 51, 234, 0.035);
}

.insurance-pill {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: #4338ca;
    font-weight: 700;
    font-size: 13px;
}

.description-box {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-box {
    min-width: 180px;
}

.audio-box audio {
    width: 180px;
    height: 38px;
    border-radius: 12px;
}

.empty-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    min-width: 88px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status-active {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.status-inactive {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 16px;
}

.btn-edit {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.btn-edit:hover {
    transform: translateY(-2px);
    background: rgba(245, 158, 11, 0.22);
    color: #92400e;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.btn-delete:hover {
    transform: translateY(-2px);
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.clause-pagination-wrapper {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(147, 51, 234, 0.06);
}

.empty-state {
    padding: 70px 20px;
}

.empty-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.14), rgba(79, 70, 229, 0.14));
    color: #6d28d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

@media (max-width: 992px) {
    .clause-hero {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .clause-hero h2 {
        font-size: 24px;
    }

    .clause-card-header {
        padding: 18px;
    }

    .clause-table thead th,
    .clause-table tbody td {
        font-size: 13px;
        padding: 14px 10px;
    }
}

@media (max-width: 768px) {
    .btn-clause-primary {
        width: 100%;
        text-align: center;
    }

    .clause-count-badge {
        width: 100%;
    }

    .audio-box audio {
        width: 150px;
    }
}
/* ================================
   Clauses Create / Edit Form
================================ */
.btn-clause-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: #4f46e5 !important;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-clause-secondary:hover {
    transform: translateY(-2px);
    background: rgba(243, 240, 255, 0.95);
    color: #3730a3 !important;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.08);
}

.clause-card-body {
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(250,247,255,0.7));
}

.clause-label {
    font-weight: 800;
    color: #4338ca;
    margin-bottom: 10px;
    display: inline-block;
}

.clause-input {
    border-radius: 16px;
    border: 1px solid #e9d5ff;
    padding: 13px 16px;
    min-height: 52px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: none !important;
    transition: all 0.25s ease;
    color: #374151;
}

.clause-input:focus {
    border-color: #8b5cf6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12) !important;
}

.clause-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.9;
}

.upload-box {
    padding: 18px;
    border-radius: 20px;
    background: rgba(147, 51, 234, 0.04);
    border: 1px dashed rgba(147, 51, 234, 0.22);
}

.audio-preview-wrapper {
    padding: 16px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.audio-preview-wrapper audio {
    width: 100%;
    border-radius: 14px;
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .clause-card-body {
        padding: 20px !important;
    }
}
.insurance-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.company-card {
    min-width: 140px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.company-logo img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}

.company-placeholder {
    width: 80px;
    height: 60px;
    margin: 0 auto;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border-radius: 6px;
}
/* ================= Testimonials Section ================= */
.testimonials-section {
 background: linear-gradient(
        180deg,
        #faf9ff 0%,
        #f3f0ff 50%,
        #ede9ff 100%
    );}





.testimonial-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 22px 18px;
    min-height: 170px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(108, 92, 231, 0.14);
}

.testimonial-name {
    font-size: 17px;
    font-weight: 700;
    color: #6C5CE7;
    margin-bottom: 14px;
    position: relative;
}

.testimonial-name::after {
    content: "";
    display: block;
    width: 35px;
    height: 2px;
    background: #d9d3ff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 2;
    color: #55556b;
    margin: 0;
}

/* استایل حرفه‌ای برای صفحه بندی شما */
.pagination-container nav {
    margin-top: 1rem;
}

/* زیباتر کردن دکمه‌های شماره‌دار */
.pagination-container a, 
.pagination-container span[aria-current="page"] span {
    transition: all 0.3s ease;
    border-radius: 8px !important;
    margin: 0 2px !important;
    border: 1px solid #e5e7eb !important;
}

/* هاور کردن دکمه‌ها */
.pagination-container a:hover {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

/* استایل صفحه فعال (شماره فعلی) */
.pagination-container span[aria-current="page"] span {
    background-color: #1e40af !important;
    color: white !important;
    border-color: #1e40af !important;
}

/* تنظیم سایز آیکون‌ها */
.pagination-container svg {
    width: 18px;
    height: 18px;
}

