.license-wrapper {
    width: calc(100% - 24px);
    max-width: 1076px;
    margin: 80px auto 35px;
    box-sizing: border-box;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.qt-card-container {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf0f2;
    box-sizing: border-box;
}

/* هدر مشترک داخلی کادر */
.qt-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f4f8;
}

.qt-card-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: #003366;
}

.qt-card-header-text h1 {
    font-size: 20px;
    color: #003366;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.qt-card-header-text p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.license-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.license-card img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.license-card img:hover {
    transform: scale(1.05);
}

.license-card h3 {
    font-size: 13px;
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-weight: bold;
}

/* استایل‌های مدال (پاپ‌آپ تصاویر) */
.license-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.license-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.license-modal-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.license-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.license-modal-close:hover {
    color: #ff4757;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@media (max-width: 768px) {
    .license-wrapper { margin-top: 75px; }
    .qt-card-container { padding: 18px; }
    .qt-card-header-text h1 { font-size: 18px; }
}