.licenses-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.license-card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.license-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.license-card .card-body {
    padding: 1.5rem;
}

.license-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.license-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.license-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    /*aspect-ratio: 4/3;*/
}

.license-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.license-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    background: white;
    padding: 0.5rem;
}

.license-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.license-expand-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.license-expand-btn:hover {
    background: white;
    transform: scale(1);
    color: #0d6efd;
}

.license-image-container:hover .license-image-overlay {
    opacity: 1;
}

.license-image-container:hover .license-image {
    transform: scale(1.05);
}