﻿.custom-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0b2b42;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.custom-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #0b2b42;
}
/* محتوای مودال - حداکثر ارتفاع و اسکرول ملایم */
.modal-body-custom {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}
    /* اسکرول بار زیبا */
    .modal-body-custom::-webkit-scrollbar {
        width: 5px;
    }

    .modal-body-custom::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .modal-body-custom::-webkit-scrollbar-thumb {
        background: #0b2b42;
        border-radius: 10px;
    }
/* قانون استایل‌ها */
.refund-rule-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .refund-rule-item:last-child {
        border-bottom: none;
    }

.list-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2ff;
    border-radius: 50%;
    color: #0b2b42;
    font-size: 16px;
    flex-shrink: 0;
}

.percentage-chip {
    background-color: #e8f0fe;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    color: #0b5e9e;
    white-space: nowrap;
}

.info-note {
    background: #f8f9fc;
    padding: 1rem;
    border-radius: 1rem;
    border-right: 4px solid #0b2b42;
    margin-bottom: 1rem;
}

.badge-custom {
    font-size: 12px;
    padding: 5px 10px;
}

@media (max-width: 576px) {
    .percentage-chip {
        font-size: 11px;
        padding: 3px 8px;
    }

    .refund-rule-item .flex-grow-1 strong {
        font-size: 13px !important;
    }

    .refund-rule-item p {
        font-size: 12px !important;
    }

    .modal-body-custom {
        padding: 1rem;
    }
}


@media (max-width: 767.98px) {
    .mb-3 img {
        width: 100% !important;
    }
}

.gallery {
    /*    width: 100%;
                                background: white;
                                border-radius: 20px; */
    /* padding: 40px; */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.1); */
}

.row-this {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}


.card-this {
    flex: 1 1 180px; /* حداکثر 4 تا در ردیف */
    min-width: 140px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    text-align: center;
}

    .card-this:hover {
        transform: translateY(-5px);
    }

    /* استایل تصویر — سایز متعادل و نه بزرگ */
    .card-this img {
        width: 100%;
        height: 150px; /* ارتفاع ثابت مناسب */
        object-fit: cover; /* تصویر برش بخورد تا نسبت حفظ شود ولی اندازه ثابت بماند */
        display: block;
        background-color: #e9ecef;
    }

/* تایتل (عنوان) زیر تصویر */
.title-this-this {
    padding: 2px 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e2a3a;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
}

/* برای نمایش بهتر روی موبایل: در صفحه‌های خیلی کوچک هر ردیف 2 تایی شود */
@media (max-width: 700px) {
    .card-this {
        flex-basis: calc(50% - 15px);
        min-width: 130px;
    }

        .card-this img {
            height: 130px;
        }
}

@media (max-width: 480px) {
    .card-this img {
        height: 110px;
    }

    .title-this-this {
        font-size: 0.8rem;
        white-space: normal;
    }
}

/* توضیح کمکی (اختیاری) */
.note {
    text-align: center;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.trainimg {
    border-radius: 10px;
}